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

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

Open
devang024 opened this issue Aug 28, 2023 · 4 comments
Open

Comments

@devang024
Copy link

We have had Unity google sign in working till 25th August,2023 in our app on Appstore and Playstore.

But since, 25th August, 2023, on iOS version, Google sign-in stopped working for some devices. Haven't changed anything in firebase dashboard , not any changes in apple dashboard.

Working properly on all devices on Android.

Tried to see through device logs for more info but no clue what causing the issue suddenly on Last released version.

@yy4040
Copy link

yy4040 commented Oct 26, 2023

I also had a similar problem and eventually solved it. In my case it happened on an Android device. In conclusion, it was a Credentials setting issue in Google Cloud Console.

  • You can view more detailed logs by adding 'GoogleSignIn.DefaultInstance.EnableDebugLogging(true);'.

  • 'catch (GoogleSignIn.SignInException e) { Debug.LogErrorFormat("GoogleSignIn.SignInException: {0}", e.Status); }' to check the Status value of SignInException. If it displays as 'DeveloperError', it is most likely a problem with your Google Cloud Credentials settings.

  • Go to the Credentials page in the Google Cloud Console. In 'OAuth 2.0 Client IDs', check the item whose Type is iOS. In my case, the problem was caused by a mismatch in the SHA-1 value of the Android Type item. (To be exact, only the SHA-1 value of the Playstore was added, and this was resolved by adding a new SHA-1 value of the development keystore)

@lvfoxx1
Copy link

lvfoxx1 commented Nov 2, 2023

when I set RequestIdToken=false , it works,but I don't know why.

@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

@DaneVal
Copy link

DaneVal commented Oct 10, 2024

ademas prueba borrando las credenciales anteriores y realizando los pasos de este post

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