-
Notifications
You must be signed in to change notification settings - Fork 613
Google Auth Linking overwrites other auth providers. #25
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
That should not be the case. Google would overwrite existing providers if you sign in with it. Check this post for more on this behavior. However, if you link the credential, the existing providers should remain. |
I was trying to link user's accounts on FirebaseAuthUserCollisionException, but in case of Google Auth this exception is not returned, Firebase overwrites the existing accounts with google account and let the user login . |
Your example and your follow up answer contradict each other. You are in fact signing in with Google to an existing unverified email account. This is the intended behavior. If a user signs up with an unverified provider (eg. email/password without verification) and then signs in with a verified provider, the account is overwritten and the unverified provider is unlinked. This is done for security reasons as anyone can claim an unverified email and we cannot confirm they are the same user. |
Closing as @bojeil-google has identified this as intended behavior. Thanks for clarifying! |
I am trying to link multiple auth providers for a user, everything is working fine but when user tries to connect google account to other auth providers account, google account seems to overwrite every other account.
Steps to reproduce:
Created account using email and password.
Linked with facebook and twitter account.
And after linking to Google account, it overwrites all the other accounts.
Relevant Code:
The text was updated successfully, but these errors were encountered: