firebase / firebase/firebaseui-web-react

emailLinkSignIn not working

Ouverte
#112 1 commentaire 3 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
JavaScript
Étoiles
1.3k
Forks
246
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

When setting `firebaseAuthConfig` (to be given to `StyledFirebaseAuth`), if `emailLinkSignIn`
is set and `url` inside it is defined, the sign-in is not successful, in the sense that clicking the email link won't sign the user in (and the `signInSuccessWithAuthResult` callback is not invoked --- this is where I set cookies and only if the cookies are set can a user be identified as having signed in). If I don't set `emailLinkSignIn` then everything is working fine.

What could be the problem, and how could it be fixed?

P.S. Just a note that when I have `emailLinkSignIn` set, I do see the `url` is visited but somehow the sign-in is not successful.

Another note: if I'm already signed-in, then including `emailLinkSignIn` and going through a new sign-in (an email is entered, the link is clicked) will send me to the `url` inside `emailLinkSignIn` successfully.

Updated: I've found out that if `url` points back the `auth` (it's where I ask for the emails) then it will be a success. I don't understand the current behaviour or if I'm using it correctly. Any help will be appreciated.

Thanks!

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Commencez au point d’entrée de StyledFirebaseAuth et reproduisez le flux avec firebaseAuthConfig.emailLinkSignIn.url défini, en le comparant à la configuration fonctionnelle sans emailLinkSignIn. Vérifiez si le clic sur le lien envoyé par e-mail appelle signInSuccessWithAuthResult et confirmez que l’utilisateur est connecté et redirigé vers l’URL configurée.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
javascript, react
Domaine
authentication, frontend
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
30/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.