Google-signin: Google Siging Failed Error: A non-recoverable sign in failure occurred

Created on 6 May 2019  路  8Comments  路  Source: react-native-google-signin/google-signin


Here is my code

 _signIn = async () => {
        try {
          await GoogleSignin.hasPlayServices();
          const userInfo = await GoogleSignin.signIn();
          await GoogleSignin.revokeAccess();
          console.log('Success:',userInfo);
        } catch (error) {
          if (error.code === statusCodes.SIGN_IN_CANCELLED) {
            // sign in was cancelled
            Alert.alert('cancelled');
          } else if (error.code === statusCodes.IN_PROGRESS) {
            // operation in progress already
            Alert.alert('in progress');
          } else if (error.code === statusCodes.PLAY_SERVICES_NOT_AVAILABLE) {
            Alert.alert('play services not available or outdated');
          } else {
            console.log('Something went wrong:',error.toString());
            Alert.alert('Something went wrong', error.toString());
            this.setState({
              error,
            });
          }
        }
    };

but it getting error Google Siging Failed Error: A non-recoverable sign in failure occurred
help me to solve this error

Most helpful comment

Solved it !!
I dont know if its a firebase issue. Spent almost two days for this simple issue.
ADDED THE SUPPORT EMAIL ON FIREBASE AND IT STARTED WORKING
Firebase or the responsible authority should be informed about this. This is a major thing and it should be solved. It is nowhere mentioned on the documentation. If this could be added at troubleshooting info it could save time of many others.

All 8 comments

@vonovak Can you please help solve this? Getting the same error

I am getting the same Error: A non-recoverable sign in failure occurred

I am also having same issue. Did any body solved it ?
I checked my sh1 keys. Those are same at firebase and my keystore.
Tried all the oauth client id as web client id. Still no luck.
Tried
signingConfigs {
+ debug {
+ storeFile file(MYAPP_RELEASE_STORE_FILE)
+ storePassword MYAPP_RELEASE_STORE_PASSWORD
+ keyAlias MYAPP_RELEASE_KEY_ALIAS
+ keyPassword MYAPP_RELEASE_KEY_PASSWORD
+ }
release {
...
}
}

Still no luck

Solved it !!
I dont know if its a firebase issue. Spent almost two days for this simple issue.
ADDED THE SUPPORT EMAIL ON FIREBASE AND IT STARTED WORKING
Firebase or the responsible authority should be informed about this. This is a major thing and it should be solved. It is nowhere mentioned on the documentation. If this could be added at troubleshooting info it could save time of many others.

@blueneel05 Thanks your solution saved me the time!

is it solved now

Steps to fix:

-Go to console.developer.google.com
-Select the project.
-Go to Credentials.
-Switch to O Auth Consent screen.
-Change the app name and fill email id (optional)
-Save at the bottom
-Try logging in now and it should work.

this solution from stackoverflow worked for me.

I have added this to the troubleshooting docs, so I'm closing.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rami-amar picture rami-amar  路  4Comments

smartcris picture smartcris  路  3Comments

ChaoTzuJung picture ChaoTzuJung  路  3Comments

BigPun86 picture BigPun86  路  4Comments

yogeshpaisode picture yogeshpaisode  路  4Comments