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

DeveloperError Exception of type 'Google.GoogleSignIn+SignInException' was thrown. #255

Open
tbr77662 opened this issue May 20, 2024 · 5 comments

Comments

@tbr77662
Copy link

tbr77662 commented May 20, 2024

"I have confirmed that I have enabled Google authentication in Firebase, and the SHA-1 has been added to Firebase and re-imported the google-services.json file, but still encountering 'DeveloperError Exception of type 'Google.GoogleSignIn+SignInException' was thrown.
螢幕擷取畫面 2024-05-20 144654
螢幕擷取畫面 2024-05-20 144743
1

@mimmomarc
Copy link

same

@m4gi
Copy link

m4gi commented May 30, 2024

Same error

@mimmomarc
Copy link

I managed to solve it. In my case, I was using the Android client ID in my code instead of the Web client ID. Additionally, if you're making a release build and have added your SHA1 from the Google Play Console on Firebase, it seems that Google Sign-In will only work when installed directly from the store. To test, you can use internal testing: https://play.google.com/intl/en/console/about/internal-testing/

@infinitychaos
Copy link

infinitychaos commented Jul 10, 2024

SOLVED!
If you have problems with DeveloperError Exception of type 'Google.GoogleSignIn+SignInException' was thrown.

  • Go to Google cloud console -> APIs & Services -> Create Credentials
  • Then you need to create a new OAuth Client ID with web application type, use its Client ID instead of your android client ID.
    (This Web client ID you create is use to get ID token of a user from google. And remember the client ID auto generated by Firebase won’t work, you need to create it manually)

(*) Also if it's not work, you may need to add API Key by go to APIs & Services -> Create Credentials -> API Key, config OAuth consent screen and add service accounts if you don't have.
One more thing you need to know, this google Id Token is isolated from firebase, you can get it by just using google cloud without config your firebase. Firebase will require this Id Token for Firebase.Auth.
Screenshot 2024-07-10 at 17 37 35

@fanhaipeng0403
Copy link

The same error, to be honest, this SDK is very difficult to use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants