android / android/identity-samples
How we could get unique ID from CredentialManager?
- Dominant language
- Kotlin
- Stars
- 515
- Forks
- 283
- Avg merge
- 9h 37m
- Merged PRs (30d)
- 2
Description
Since [GoogleSignInAccount was deprecated](https://developers.google.com/android/reference/com/google/android/gms/auth/api/signin/GoogleSignInAccount). I try to find a way to get unique ID but there is no api related to getting the user's ID from `GoogleIdTokenCredential` nor `AuthorizationResult` except `AuthorizationResult.toGoogleSignInAccount`
Is it intentional to discourage requesting user's ID or are there other way to get/generate unique ID that I couldn't found from `CredentialManager` or `Identity.getAuthorizationClient` ?
EDIT: I have notice that actually `getId` will return email. But this is confusing and it then can't let me get the unique id instead
Contributor guide
Research direction
No file or test is named. Start by reviewing the CredentialManager samples and the documented behavior of GoogleIdTokenCredential, AuthorizationResult, and toGoogleSignInAccount; determine whether a stable user identifier is supported and whether the getId/email behavior is intentional. Done means the supported approach or limitation is clearly documented in the relevant sample or issue discussion.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- authentication, mobile
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100