Gadzair
Gadzair

Reputation: 1261

How can I make Google Sign In not say that it is sharing the user's email?

When I add sign-in with Google to my web app, without any scopes passed in, the user is still shown a dialog that says the email will be shared with the application. I've tried Firebase Auth using a Google Provider as well as Google Sign-In with FedCM, but they all seem to have this issue. On Firebase I even turned on the Create Multiple Accounts for each Identity Provider thing, which works great in that I really don't see any email addresses of users that sign-in, yet despite that the auth consent dialog still claims that my app will be given an email address. What am I doing wrong? Or is this a bug on Google's side.

Upvotes: 2

Views: 52

Answers (1)

Frank van Puffelen
Frank van Puffelen

Reputation: 599866

While it's possible to add scopes, I'm not sure this is possible to remove scopes from the default that Firebase requests - which includes the email, as Firebase typically uses that as the primary identifier for a user.

Given this, you'd have to create your own custom provider that doesn't request the email.

Upvotes: 0

Related Questions