-
Notifications
You must be signed in to change notification settings - Fork 441
Logging in with same email address (Google, Facebook) #389
Comments
Hi, @mrdeleon, Do you have any updates about this topic? Thanks |
@smarza no not yet. |
@mrdeleon I found out something related today.. |
I took a look at that setting and what I have is the default setting of "Prevent creation of multiple accounts with the same email address". I believe that is what I am looking for. |
Should fix EddyVerbruggen#357 and EddyVerbruggen#389 and maybe others as well. This will avoid the exception `com.google.firebase.auth.FirebaseAuthUserCollisionException: This credential is already associated with a different user account`. This problem occurs if the current user is anonymous, but the `loginResult` points to another already known firebase user (e.g a facebook account). In this case we have to call `firebaseAuth.signInWithCredential(authCredential).addOnCompleteListener(onCompleteListener)` instead of `user.linkWithCredential(authCredential).addOnCompleteListener(onCompleteListener)`
if I active that I can log in properly but I create a new user with a new id. If I need my previous user to see (for example) my post won't work |
How sing in other different ways to firebase user with the same email? |
This is the most updated documentation to log in using When I log in twice I get this issue but as I commented above we can't just allow multiple accounts if we want to have always the same user ID |
When sign in through facebook with the same emailid used in google sign up, I am showing a error msg to user, I want to specify the EMAIL which has been used, to show in error msg. |
@mvanan88 But potential user from retract from signing in thinking that it is Bug. Just an Idea! |
Similar problem: I initially signed in with my github account, then subsequently created a new account (intended as a second, test account) via my gmail account - but that gmail account is the email address associated with my github account. Now I can login via google but not github. |
I'm facing this issue also after reinstalling/updating my app. I've found the most acceptable solution here. IMO having multiple user ID's for the same credentials might be a problem depending on how your application needs to manage users. In my case, allowing multiple accounts for the same email did the job. |
I have the same issue. If I loggin with email first, Ican login with google OR facebook. But after user login with one of this providers, the component doesnt link the new provider with the exist account. We can disable check unique email account in the firebase, but this broke the logic and the user lost the database. For avoid errors, now I'm asking email first to check actual providers, then show the options. but this is so weird. Any suggestion? |
Got this answer from (here.) The other option will make you loose the database. In firebase, it is very important to verify user email account the first time they login with Facebook , by sending a verification email. Once email is verified, you can login with both Facebook and Gmail if user is using @gmail.com as email address. f you did not verify the Facebook email before user logout and try to login with their gmail, you will not be able to login with Facebook again the moment they login with their gmail. |
I have the same issue too. If we do the reverse process, occurs an authentication error from Firebase. |
This is your solution to link any firebase AuthPovider to the same email: https://firebase.google.com/docs/auth/web/account-linking This way user will be able to access by email. facebook or google keeping the same ID at firebase. |
It looks like if I create an account with Facebook then create an account with Google using the same email address the Google account will replace the Facebook account.
This doesn't seem to happen the other way around. It will tell me that the email is already associated with a provider.
"Logging in the user failed. com.google.firebase.auth.FirebaseAuthUserCollisionException: An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address."
I feel like replacing the Facebook account with Google credentials is an issue.
The text was updated successfully, but these errors were encountered: