google-signin: A non-recoverable sign in failure occurred code 12500
I am using
- react-native 0.55.4 and 0.57.2
- react-native-google-signin@1.0.0rc1 and react-native-google-signin@1.0.0rc6
- classpath ‘com.android.tools.build:gradle:3.1.4’ classpath ‘com.google.gms:google-services:3.2.1’
- play-services-auth 16.0.1 & 9.2.1 (tried both version)
I got this error when signIn
{ [Error: A non-recoverable sign in failure occurred] framesToPop: 1, code: ‘12500’, line: 21326, column: 31, sourceURL: ‘http://localhost:8081/index.delta?platform=android&dev=true&minify=false’ }
I tried add and remove SHA1 then redownload google-service.json for both setting, still same error.
I tried client ID for web application and android client, both getting same error.
This is my google sign in code
GoogleSignin.configure({
webClientId: 'xxxxxxx.apps.googleusercontent.com', offlineAccess: true,
})
GoogleSignin.hasPlayServices()
.then(() => {
GoogleSignin.signIn()
.then((user) => {
console.log(user);
})
.catch((err) => {
if(err.code === 'CANCELED')
{
console.log('glogin canceled', err.code);
dispatch(loginFailure(null))
}
else{
console.log('error', err);
}
});
}).catch(err => {
console.log('Play services error', err.code, err.message);
});
any idea what cause the error?
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 2
- Comments: 67 (1 by maintainers)
I got stuck on this one for several days until I figured how what was wrong. I relay with most of the situation described above :
And I noticed that in the App signing part of the Google Play account :
I checked the play account (important thing to mention at this point : I did not configure the play account) : And sure enough, my package was being RE-SIGNED by google play certificate…
When you go to the Release Management > App Signing, you will see the SHA1 of the keystore being used by Google after yours. Pick it, paste it in Firebase, update your google-services.json file, redeploy and VOILA !
I really hope this help others to avoid all the hair pulling I’ve been doing these last few days 😄
i solved this by updating consent screen at developer console -> Credentials -> OAuth consent screen
the login works until 3 days ago !!!
I was facing the same issue yesterday. I had the issue for debug / local mode and I tried everything posted in this thread and nothing happend. I fixed it going to firebase console -> Developement Section in the dashboard panel -> Authentication and enable google authentication. Hope this help. I dont know why i have to do that since i was working whitout that until yesterday
Please see http://developerextensions.com/help/230-Google-signin-returns-12500,-12501-error-code-
I found a FIX, you just have to add SUPPORT EMAIL in firebase console.
It took me a whole day but finally found solution, hope it helps you all too.
As hard as it may be to believe, the fix was filling out the “Support email” field in Firebase!
Exact steps I took to fix 12500 error code:
It appears to be related to the OAuth consent; more details in this StackOverflow. Hope this helps!
@kalraneeraj24550 i’ve already follow your steps, but i’m still get same error message… 😦
Experiencing this issue too
I used this http://developerextensions.com/index.php/help/230-Google-signin-returns-12500,-12501-error-code- to solve it.
I used wrong debug.keystore.
For me the fix was to enable Google login in firebase console and download google-services.json again. The consent screen is only required if you are using oauth2 login directly and not Google’s SDK
I am using
i am still unable to login with google
this is my code
and then this is da error
WRONG SIGNIN Error: A non-recoverable sign in failure occurred at new GoogleSigninError (GoogleSignin.android.js:55) at GoogleSignin.android.js:131 at RCTDeviceEventEmitter.emit (EventEmitter.js:181) at MessageQueue.__callFunction (MessageQueue.js:353) at MessageQueue.js:118 at MessageQueue.__guardSafe (MessageQueue.js:316) at MessageQueue.callFunctionReturnFlushedQueue (MessageQueue.js:117) at t (RNDebuggerWorker.js:1)what i was doing
this is run on debug mode, i am still develop so dont testing on release yet.
I am getting this type of Error Code – 12500. but I have added support url in firebase console. I did not get any response.
You are the hero! I tried so hard and eventually your solution worked. Thanks man!
If you follow the guide for installation correctly, the only thing you really need is to save the consent screen that is given to you by default in the console. It just resolved my problem in one minute.
I can be wrong, but I think you are missing the webClientId which is required for Android @never00miss
see https://github.com/react-native-community/react-native-google-signin/blob/master/example/index.js#L23
https://github.com/react-native-community/react-native-google-signin/blob/master/android/src/main/java/co/apptailor/googlesignin/RNGoogleSigninModule.java#L111
Make sure set publishing status to production in OAuth consent screen
I go throug all this solutions but none of them works for me. What really helped:
Of course you should try all solutions above. But I just leave it here
any one having issues with debug mode can watch this vedio it will satisfy you it has complete google login working with react native cli (init version )
link: https://www.youtube.com/watch?v=AHVaxhcoY98&t=124s
You just saved me a lot of hours of pointless debugging. Thanks!
Re-created app - Still does not work. Added support email - Worked. Strange but true. Google firebase should give proper error message for this. It wastes lot of developer hours.
So after many long hours
Updating the OAuth consent screen works
and sir, i am facing this issue. in even in debug mode. sir plz help me.
On Wed, Dec 26, 2018 at 10:10 AM neeraj kalra neeraj.emilence@gmail.com wrote:
sir, thanks sir, you came for help. sir, can you plz send the link that from where i can get APP SIGNING CERTIFICATE.
On Tue, Dec 25, 2018 at 9:36 PM cjjabc7 notifications@github.com wrote:
i am facing the same issue, even in debug/local. error= Error: A non-recoverable sign in failure occurred error code = 12500
i have checked certificate_hash in googleServices.json is same as hash in firebaseconsole. application id is also same. plz help me
any updates? Still facing same issue
whoever is using debug.keystore and did all config but still not working check your SHA1 signature whether you are using correct signature . I have faced in windows . in official document keystore is located in %USERPROFILE%.android\debug.keystore location . but my app is not using that keystore is it using different which is located at : %USERPROFILE%\AppData\Local\Android\Sdk.android\debug.keystore .
better take SHA1 signature from Android studio. (this Link may help : https://aboutreact.com/getting-sha1-fingerprint-for-google-api-console/).
hope that helps
i was doin that on point 1, so i was add my keystore SHA1 fingerprint to > firebase, and generate new google-services.json
and the params google-services.json
so this is my gradle.properties
and path to my keystore
./android/app/my-release-key.keystore3 or 5 month ago this problem not show, idk why this bug showed this month