

If you enabled the One account per email address setting in the Firebase console, If they signed up for their account with a password or a social IDP. Logging in with Google will never cause this error when their account is hosted at Google even Email IDPs areĪuthoritative for all email addresses related to their hosted email domain while social IDPsĪssert email identities based having done a one time confirmation of the email address. Handling account-exists-with-different-credential Errors Google serves as both an email and social identity provider. For a list of error codes have a look at the Auth Reference Docs. This is also where you can catch and handle errors.

Add Firebase to your JavaScript project.Passing the resulting ID token to Firebase. You can either use the Firebase SDK to carry out the Google sign-in flow, orĬarry out the sign-in flow manually using the Sign In With Google library and You can let your users authenticate with Firebase using their Google Accounts.
