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.

EmailLinkSignIn - retrieve email used

See original GitHub issue

Is there any way to retrieve the email used to send an email link without implementing a custom function/implementation of the firebaseui react?

i.e. it’d be great to have something similar to the below in the umailLinkSignIn callback:

emailLinkSignIn: function(email) {
   window.localStorage.setItem('emailForSignIn', email)
}

so we can avoid reprompting for the email.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
scotty595commented, Apr 14, 2020

perfect, once I changed the signInFlow from ‘popup’ to ‘redirect’ it started automatically logging in with the correct email address - thanks.

Still seems to be relevant if you have is set as popup signInFlow though.

have used the below in uiConfig as a workaround:

signInFlow: firebase.auth().isSignInWithEmailLink(window.location.href) ? 'redirect' : 'popup',

2reactions
jmncommented, Sep 21, 2020

I had the same problem and it took quite a while to figure out. Setting signInFlow to redirect makes passwordless e-mail sign in work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Authenticate with Firebase Using Email Link in JavaScript
You can use Firebase Authentication to sign in a user by sending them an email containing a link, which they can click to...
Read more >
Firebase UI Email Link signin intent extra is null - Stack Overflow
Shows despite successfully getting a intent, there is no EMAIL_LINK_SIGNIN extra in the getExtras() . I spend few hours looking into the source ......
Read more >
Manage your email addresses - Android - Google Account Help
You can add a non-Gmail email address to your account and use it to sign in, recover your password, and more. ... Manage...
Read more >
Auth - Provider - Email Link - air native extensions
You can use Firebase Authentication to sign in a user by sending them an ... Note that email/password sign-in must be enabled to...
Read more >
Passwordless Signup With Firebase on the Web - Fireship
How to implement passwordless email-link authentication with Firebase and ... passwords and personally find it much more user-friendly.
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