Google sign in replaces other auth providers #5897
Replies: 1 comment 5 replies
-
Interesting. I've seen something similar with email/password reset after linking facebook, where facebook was unlinked. I know there is something special about which providers they consider to strongly verify email, thus setting the emailVerified flag if you sign in with facebook or google, it will set that flag. I have not seen link/unlink displacing things in general though. So I'll say "needs a reproduction" - a minimal App.js that you can drop in a clean container from https://github.com/mikehardy/rnfbdemo/blob/master/make-demo.sh (or perhaps https://github.com/invertase/react-native-firebase-authentication-example for all the auth stuff...) because I don't see this in my work app. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working on an app that allows the user to sign in with Google, Facebook and Twitter. I noticed that if the user signs in with one auth provider, and then tries to use another, signInWithCredential() will return an 'account-exists-with-different-credential' exception. I already managed to handle this exception for the three auth providers, so the user has to authenticate using the previous provider to link the new one.
However, this only happens if the new auth provider is NOT google. If the user authenticates with Facebook or Twitter first, and then uses Google, it won't throw an exception, and instead it unlinks the previous providers, leaving that account with Google as the only provider. Is this a bug? because it looks quite inconsistent, the other providers work differently. Is there any way to disable this behavior?
Beta Was this translation helpful? Give feedback.
All reactions