Firebase manages multiple auth providers

I am working on an Android application that uses multiple authentication with firebase like Facebook, Google and Email / Password. Each authentication works differently.

But when I log in with google and then logged out, and later when I use facebook to log in using the same email id.

He says.

com.google.firebase.auth.FirebaseAuthUserCollisionException: An account already exists with the same email address, but different login credentials. Log in using the provider associated with this email address.

All I want to do is consolidate the account when a user tries to log in using a different authentication provider using the same email id.

Is there any way to handle this using firebase.

Please, help.

+6
source share
2 answers

just change it here .. that's all .. welcome

enter image description here

+20
source

This is because you use the same email id to log in to facebook and google, so if you just want to check if your application works with all federated authentication, I recommend that you delete the user every time you create it.

To do this, simply go to the auth section of the Firebase console and delete the user, like this enter image description here

-5
source

All Articles