Hello,
I implemented Google and Facebook authentication. All seemed well until today.
I get this error when authenticating with Google:
Logging in the user failed. com.google.firebase.auth.FirebaseAuthUserCollisionException: This credential is already associated with a different user account.
and with Google:
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 am testing this on a geny emulator.
Any ideas on what is going on here?
Thank You
What version of the plugin are you using?
"nativescript-plugin-firebase": "^3.10.2",
Maybe using the latest version helps, 3.11.3
This is an error from Firebase. Go to the Firebase console and delete any user already associated with that account.
@derFaizio To delete the user from the console is not a good solution, when we are using firebase DB the fUid is configured with this,
A scenario is this if user has the first login with Google and log out and again login with FB with same email id then it should work here it's causing the error
@pankajjolapara I have the same issue, do you have a solution ?
@Bretto Sorry I don't have a solution but maybe with linking concept it can possible
Any update on this? Expecting functionality of linkWithPopup.
Any update on this? Expecting functionality of linkWithPopup.
@mhtsharma948 if you check the error codes in the linkWithPopup docs, you'll see a recovery scenario in the auth/credential-already-in-use section. You'd need to do something like:
firebase.auth().currentUser
.linkWithPopup(new firebase.auth.GoogleAuthProvider())
.catch(e => {
firebase.auth().signInWithCredential(e.credential);
});
@mhtsharma948 if you check the error codes in the linkWithPopup docs, you'll see a recovery scenario in the
auth/credential-already-in-usesection. You'd need to do something like
@shovelend I can't see any functionality of linkWithPopup in the nativescript-firebase plugin. Can you be more precise?
Most helpful comment
This is an error from Firebase. Go to the Firebase console and delete any user already associated with that account.