A non-recoverable sign in failure occurred code 12500

See original GitHub issue

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?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:62 (1 by maintainers)

github_iconTop GitHub Comments

55reactions
HadrienPierartcommented, Oct 26, 2018

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 :

  • Works fine in debug/local
  • If I build the release package and install it through adb install it works fine
  • If I check the SHA1 of the package/keystore, everything is in order and matches the config in Firebase and the google-services.json
  • And then, once deployed in beta or released on the store : the google signin fails miserably…

And I noticed that in the App signing part of the Google Play account : screenshot from 2018-10-26 12-18-57

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 😄

27reactions
b3hroo2commented, Apr 15, 2019

i solved this by updating consent screen at developer console -> Credentials -> OAuth consent screen

the login works until 3 days ago !!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

RN google signin (Error code- 12500 Failure) - Reddit
Hi, has anyone has experienced following google signin error during their setup/configuration- Error: A non-recoverable sign in failure ...
Read more >
Google SignIn SDK is failing by throwing error, A non ...
[Error: A non-recoverable sign in failure occurred] 1. add support email to solve this error 2. and wait 5 minutes your google login...
Read more >
error: a non-recoverable sign in failure occurred - You.com
I have a React native project with Firebase. I have created a sign in with Google which it works on API 29 and...
Read more >
Possible issues in google login using firebase - Itechinsiders
1) a non-recoverable sign in failure occurred react-native Google Sign In error 12500 ... Solution: This error has occurred if you don't set...
Read more >
Android Google Sign In error message codes 12500 / 10
Solving google authentication issues to Android Firebase app.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found