Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
divyaaelius opened this issue May 6, 2019 · 8 comments
Closed

Comments

@divyaaelius
Copy link

divyaaelius commented May 6, 2019

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

@davekedar
Copy link

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

@ckOfor
Copy link

ckOfor commented May 21, 2019

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

@blueneel05
Copy link

blueneel05 commented Jun 19, 2019

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

@blueneel05
Copy link

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.

@GZLiew
Copy link

GZLiew commented Jun 20, 2019

@blueneel05 Thanks your solution saved me the time!

@nicsachin
Copy link

is it solved now

@nicsachin
Copy link

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.

@vonovak
Copy link
Member

vonovak commented Aug 27, 2019

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

@vonovak vonovak closed this as completed Aug 27, 2019
@react-native-google-signin react-native-google-signin locked as resolved and limited conversation to collaborators Aug 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants