-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Please do not force email scope for Google Sign In #1899
Comments
@u201701 actually we can't remove this. Firebase Auth uses the user's email address as the primary key (or phone number for Phone Auth) so when we do social login with Google, Twitter, etc we need to request the user's email. This is not a FirebaseUI issue it's just a principle of using Firebase Auth, you can see that the docs here recommend the same: |
@samtstern I am quite sure you are mistaken, and I hope you could discuss with the larger engineering team. Here are 6 points that I offer as compelling evidence:
If you still don't believe me, let's look at what your team's code does for other providers that do offer the choice of email address:
Please reopen and add this tiny fix. Requesting a user's email address is pretty significant and that is why even Google (both Google Oauth and Firebase) do not force it in their auth systems. This is an oversight and I hope you allow the use of your valuable library without requiring library-users to not accommodate their end-users privacy preferences. |
@u201701 thank you for all of the feedback! So if you have the "one account per email address" setting turned on in the Firebase console (which most people do) then we do require the Due to #1621 we made this the default behavior. We're not going to reverse that decision now, but you can override it using
|
@samtstern Thank you for your receptivity and your suggestion to use But, not only does the workaround not work, but hmm..., there's also a puzzle on our hands. I went through all the discussion, but I can't see how #1755 fixes #1621
The Unfortunately, I am still stuck. We need a I realize most people do not need this, but I'm just the first in a minority for whom it is reasonable to prioritize not requesting email to encourage users to signup with Google. Since there is a reasonable fix to add the |
This was fixed and released in version |
Please do not force the user to request email scope when signing in with Google, as mandated by the red-circled line of code in the image.
The backward-compatible solution would be to add a similar method with a different name, say
setScopesOnly
orsetScopesExactly
, and have that method not include the.requestEmail()
call.Google itself makes it optional to request email, so this option should naturally be exposed in this library since there is no additional cost.
The rationale is that many users would be more comfortable logging in with Google if they are assured that the app will not receive their email address.
Since this is trivial, please implement it soon -- the only decision is what to call the name of the function, and then I could submit a pull request.
Thank you
The text was updated successfully, but these errors were encountered: