google-signin: Error: A non-recoverable sign in failure occurred When use webClientId

I encountered this error when used

GoogleSignin.configure({
      webClientId: env.GOOGLE_WEB_ID,
      offlineAccess: true,
    });

It works if I remove webClientId (Webclient already active in web version). But i need use serverAuthCode. How to fix it, I tried the solution at the forum but could not fix it 😦 My scope in google console. image

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 25 (1 by maintainers)

Most upvoted comments

finally, I understood. You have to go to Firebase console > authentication > google signin (make activate!) > web SDK setting. And its ā€œWeb client SDKā€ would be used for GoogleSignin.configure .

What worked for me:

  • cd ./android && ./gradlew signingReport
  • Take the SHA1 of Task :app:signingReport, Variant: debugAndroidTest, Config: debug
  • Update it the Firebase Console under Project Settings, Android app, add the SHA1
  • Download the google-services.json, put it in ./android/app
  • Go to Authentication, then Sign-in method, then press Google
  • Take the Web client ID and use that for your GoogleSignin.configure({ webClientId: ... });
  • This Web client ID should be the same as listed in https://console.developers.google.com/apis/credentials?project=<your_project_id> -> Credentials -> OAuth 2 Client ID -> Web Client

SAME HERE!!!

same here too

Thanks all ! I solve it by doing the following steps :

  • Setting both SHA1 and SHA256 in firebase from this link
  • Activate Firebase console > authentication > google signin
  • use web SDK setting and ā€œWeb client SDKā€ for GoogleSignin.configure .
  • Setting Support email in firebase settings

hi, one of the maintainers here. I’m not using this functionality and don’t have time to fix this. If there’s anyone using the lib who needs this, please go ahead and provide a PR for this, I’ll be available for code review and help if necessary.

Thanks.

For my problem, I copied the application signing sha1 hash code from Application signing key certificate part of google play console > Release Management > App Signing page. Then I pasted it to Firebase settings and this solved the problem.

@uchar It worked for me. Thanks! Setting both SHA1 & SHA256 in firebase from the given link worked well.

if HAVING DEVELOPER_ERROR or ā€œnon recoverable sigin errorā€ …

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

request

I get developer error