Skip to content

Conversation

@Thaina
Copy link

@Thaina Thaina commented Jun 10, 2024

Since there is deprecation and migration recommendation from signin system

: copied from readme >

https://developer.android.com/identity/sign-in/legacy-gsi-migration
https://developers.google.com/identity/sign-in/ios/quick-migration-guide

Thank for ios fix which was cherrypicked from this fork : https://github.com/pillsgood/google-signin-unity

Android was migrated to use CredentialManager and AuthorizationClient since GoogleSignInAccount was deprecated

However, GoogleIdTokenCredential actually not provide numeric unique ID anymore and set email as userId instead, so I have to extract jwt sub value from idToken (which seem like the same id as userId from GoogleSignIn of other platform)

Tested in unity 2021.3.21 and unity 6000.0.4

Add UPM dependency with branch tag https://github.com/Thaina/google-signin-unity.git#newmigration

{
  "dependencies": {
    "com.google.external-dependency-manager": "https://github.com/googlesamples/unity-jar-resolver.git?path=upm",
    "com.google.signin": "https://github.com/Thaina/google-signin-unity.git#newmigration",
}

update readme
@Thaina Thaina force-pushed the newmigration branch 2 times, most recently from 3da1816 to 6c3c741 Compare June 13, 2024 12:45
@CodeMasterYi
Copy link
Owner

@Thaina Hello, Thanks for your effort for this repository. But I dont want to pay much time on this. You can keep your change on your fork and let others download your optimized versions. Thank you very much!

Log more exception
fill logic with condition
Thaina and others added 3 commits July 19, 2025 20:40
#28)

* Adjust runtime configuration for webClientId in GoogleSignIn_Configure

* Fix typo of GIDConfiguration's property
Refactor GoogleSignInImplEditor for silentsignin support with cache
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

Successfully merging this pull request may close these issues.

6 participants