-
Notifications
You must be signed in to change notification settings - Fork 938
MFA bug on unenrolling last factor when you have more than one factor enrolled. #3233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for reaching out. I am able to reproduce this. Tracking internally at b/159455224 |
Hey @Albertbol, currently this works as intended. Here is a simplified reason of what is going on:
You can file a feature request for an improved session management solution which is something we are interested in exploring down the road. We do understand the UX downside here. However, for security reasons, we are required to follow the above behavior. |
Hi @bojeil-google, Thanks for answer, When i follow your link i get: Component ID 458130 does not exist or you do not have access. |
Experiencing the exact same issue. Also hoping this gets improved, hopefully by throwing err "auth/requires-recent-login" so it can be caught and handled. |
Thanks for following up. I have pinged the internal tracking bug to evaluate if we can throw the "requires-recent-login" error here. |
Marked as closed, since the PR - #6973 exposes "auth/user-token-expired" error in mfa unenroll. This can be caught and handled with a reauthenticate. |
[REQUIRED] Describe the problem
When you add 1st mfa phone number, then 2nd if you try to unenroll 2nd factor, factor will be removed but you will get this error in query: https://www.googleapis.com/identitytoolkit/v3/relyingparty/getAccountInfo?key=***
Which will log out user, what is strange is if you delete it in another sequence: add 1st factor, 2nd factor and unenroll 1st, everything will work fine...
This is very important as in production environment user cannot delete factors safely, it works only in reverse sequence delete the one you added first, if you delete the least MFA you added and you have more than 1 you will get this error.
Please help maybe i'm doing some kind of easy mistake there, pretty sure MFA is heavily tested and this sounds as a thing you couldn't miss, thanks!
Steps to reproduce:
I setted up rough project where you can reproduce this, follow through readme :
https://github.com/Albertbol/bug-mfa
The text was updated successfully, but these errors were encountered: