google-signin: [ANDROID] Getting Error: "A non-recoverable sign in failure occurred" when using firebase emulator
This issue applies to Android only. iOS works just fine.
I get an error, “A non-recoverable sign in failure occurred”, after triggering google sign in. I found a similar issue, https://github.com/react-native-google-signin/google-signin/issues/659#issuecomment-513555464, which was solved by adding a support email to the firebase console. I’ve looked at the docs, but I’m still not sure how to do the same via the firebase emulator.
Steps to Reproduce
With
// App.js
GoogleSignin.configure({
webClientId: CLIENT_ID}",
});
// googleSignInButton.js
const {
idToken,
user: { email },
} = await GoogleSignin.signIn();
Expected Behavior
The google sign on webview should open after triggering GoogleSignin.signIn();
Environment
“react-native”: “0.70.8”, “@react-native-google-signin/google-signin”: “^9.0.2”,
About this issue
- Original URL
- State: open
- Created 3 years ago
- Reactions: 5
- Comments: 32
I m also, facing this issue since a week. On IOS it works fine: but not on android…
I m using “@react-native-google-signin/google-signin”: “^10.1.0”,
I checked by chenges the following: keys, Oath screen confuguration, add webClient ID, add Android Client id, add my firebase Client id,
But nothing works for me…
Reproducing: When Click on sign in. with google to add calendar, then modal appears by showing google accounts and then click any account then the following error occurred:
[Error: A non-recoverable sign in failure occurred]
@fbotalla Facing this issue in android, We should create issues for this
Firebase project name does not allow any special character in their project name, and the android package name contains a ‘.’(dot) in name, how you are doing this?
To solve this problem, you need to follow two steps:
For anyone getting this error with Google Sign-In on a production build from the Play Store: the issue was missing SHA-1 fingerprints in the Google Cloud console.
That solved it for me. Not a code-related problem.
I had a similar issue where only some emails were working (on both iOS and Android). Android only gave this very limited error message, but when we tried on IOS, it gave further detailed information about what was going on.
It turns out that the OAuth user type was set to Internal on Google Cloud. Setting it to External fixed the issue.
I hope you can tell me how to solve this problem
facing same issue
Ah no the problem for me is not with the android emulator. I’m thinking it is the firebase emulator. The
non-recoverable sign-in failure occurredmessage seems to be tied to necessary config changes on firebase console. I’m using firebase emulator (ref: https://firebase.google.com/docs/emulator-suite) in place of an actual firebase project, at least for e2e testing purposes.