Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase UI login with Google is failing due to 12500(SIGN_IN_FAILED) error code

Tags:

firebaseui

I am using Firebase UI to provide login for my app. When i try to login with Google it is giving error message com.firebase.ui.auth.FirebaseUiException: Code: 12500, message: 12500. But i when try to integrate google login directly it is working fine. I Couldn't find the way to resolve this issue. Error code description in google document

The sign in attempt didn't succeed with the current account.

Unlike SIGN_IN_REQUIRED. when seeing this error code, there is nothing user can do to recover from the sign in failure. Switching to another account may or may not help. Check adb log to see details if any.

like image 439
Suresh Pichuka Avatar asked Nov 13 '18 08:11

Suresh Pichuka


2 Answers

Check to see if you have added a "Support email" in your firebase project settings. This was able to solve the problem for me after a lot of trying different things that didn't work.

like image 193
Heloed Avatar answered Oct 19 '22 16:10

Heloed


You may need to set a SHA-1 certificate fingerprint in your app's Firebase settings. See this answer to a similar question here (reproduced below): https://stackoverflow.com/a/52082447/4982525

Check if SHA-1 fingerprints are added to the firebase project settings. If not,find SHA-1 fingerprint using

https://developers.google.com/android/guides/client-auth

Also, find the SHA-1 fingerprint of release key using

keytool -list -v -keystore <keystore path>

Remove with the path of the key store.

Then add both SHA-1 fingerprints to firebase projects settings.

NB: Don't forget to replace google-services.json with updated google-services.json with new fingerprints. I lost two days on that.

like image 22
trod Avatar answered Oct 19 '22 17:10

trod



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!