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

How we could get unique ID from CredentialManager? #85

Open
Thaina opened this issue Jun 9, 2024 · 0 comments
Open

How we could get unique ID from CredentialManager? #85

Thaina opened this issue Jun 9, 2024 · 0 comments

Comments

@Thaina
Copy link

Thaina commented Jun 9, 2024

Since GoogleSignInAccount was deprecated. 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

@Thaina Thaina changed the title How we could get email from CredentialManager? How we could get unique ID from CredentialManager? Jun 9, 2024
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

1 participant