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

When implementing Google Sign-In on Android, is it possible to indicate in the google account sign-in popup that only email address will be used? #615

Open
jin-jobs opened this issue Jul 17, 2024 · 0 comments

Comments

@jin-jobs
Copy link

Step 2: Describe your environment

  • Device: all
  • OS version: all
  • SDK version:
  • [Android] Google Credentials version: 1.2.2

Step 3: Describe the problem:

Steps to reproduce:

  1. Implement google sign in using CredentialManager and GetSignInWithGoogleOption.
  2. Build the app and press the google sign up button to proceed with the signup process.
  3. In the google account integration popup, you will see that “name, email address, profile picture” are accessible in the user's account.
image

Observed Results:

  • In the google account integration popup, you will see that “name, email address, profile picture” are accessible in the user's account.

Desired Results:

  • I only need the user's email address. I want the popup to show the user that it only uses the email address.
    As I understand it, name, email address, profile picture are the default public information in google account. However, I will only use the user's email address in my app via google sign-up, and I want the popup to show only the email address.
    Is this possible?

Relevant Code:

          val credentialManager = CredentialManager.create(context)
          val request = GetCredentialRequest(
              listOf(
                  GetSignInWithGoogleOption.Builder($google_client_id)
                      .build()
              )
          )
          val result = credentialManager.getCredential(context, request)
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