Here am trying to implement Google, Facebook and Twitter login using firebase.
I have faced many scenario which was not clear for me.
Each individual login is working correctly, I didn`t found any problem here.
My requirement is when the user log-in with [email protected] for the first time with some provider(Google,Facebook,twitter) and after success, user logged out. On second log-in the user use same id [email protected] with some other provide rather than one used before,that time We should not allow the login process. User need to log-in with the same provider from next time.
Below are the cases I found ,
For first time when in log-in using [email protected] using google, after success popup i logged out. For second time i try to log-in using same id [email protected] using Facebook or twitter its throws an error "An account already exists with the same email address but different sign-in credentials".
For first time when in log-in using [email protected] using twitter or Facebook, after success popup I logged out. For second time I try to log-in using same id [email protected] using google. It does not showing any Exception. Here I need to notify the user "[email protected] is associated with twitter or Facebook, Use same provider to login "
I don`t know whats happening in second case.
For this id xxxxx@gmail I have google, Facebook and twitter account.
See if it helps you. Change this settings in Firebase console
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With