question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Enforce sharing of email address if it is disabled on SignIn with Facebook

See original GitHub issue

Is your feature request related to a problem? Please describe. Sign In with Facebook allows a user to opt-out from sharing an email address. As a result user’s info received by the Firebase does not have an email address. Why is it a problem?:

  • Some applications may rely on the email address being always available (my use case). As a workaround, I need to handle the case post-signup and ask a user to provide the email and forward it to my backend service. This is OK if you have got such a backend. And even if there is such a backend, the Firebase Authentications list will still miss the email address for a user.
  • Later, the same user may signin using google provider or email and the same account will not be detected, i.e. Facebook account without email is not matched by the dialog. The result is 2 different accounts for the same user and bad user’s experience. I have not found a solution to this problem.

Describe the solution you’d like It would be great to have signin dialog to dispatch the case of missed email address and ask a user to provide it before the flow is completed (similarly to sign in by email, the dialog asks for full user’s name after signup)

This is where user can opt-out from sharing the email address: image

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:2
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
avkonstcommented, Nov 21, 2018

Yes, this my current workaround I am thinking to add. I assume the email provided via updateEmail will be saved as not verified. Will existing firebase email verification procedure still work after I invoke updateEmail and trigger verification?

On Wed, 21 Nov 2018, 20:59 bojeil-google <notifications@github.com wrote:

Hey @avkonst https://github.com/avkonst, just to confirm, you are requesting the option to add an email to an account if the user signs in with an identity provider that didn’t return an email for the user. Note, for now, after sign-in completion with FirebaseUI, you can always show a page to ask the user to provide their email if the user doesn’t have one. You would just call user.updateEmail(email) after they provide the email.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/firebase/firebaseui-web/issues/528#issuecomment-440571055, or mute the thread https://github.com/notifications/unsubscribe-auth/ADyZVfhW_bqoxdhJKaH0Oq8oWqtv7VL0ks5uxQf7gaJpZM4YsaOi .

0reactions
garyforsteriocommented, Jun 24, 2019

👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why was my account disabled? | Facebook Help Center
Your account is temporarily suspended because your profile doesn't list your authentic name. Facebook is a community where people use their authentic ...
Read more >
Why was my account disabled? | Facebook Help Center
Your account can be disabled for going against our policies. ... Recover Your Facebook Account if You Can't Log In. Deactivating or Deleting...
Read more >
Login Security - Meta for Developers - Facebook
Disable Client OAuth Login if your app does not use it.​​ Note, though, that you can't request permissions for an access token if...
Read more >
App Visibility and Privacy | Facebook Help Center
1. Tap ; 2. Scroll down and tap Settings ; 3. Tap Logged in with Facebook ; 4. Tap the app that you...
Read more >
Troubleshoot a Restricted Account | Meta Business Help Center
If you don't, we may restrict your access to Business Manager tools for security purposes. To reinstate your account, you'll need to enable...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found