firebase / firebase/firebaseui-web-react
emailLinkSignIn not working
- Lenguaje dominante
- JavaScript
- Estrellas
- 1.3k
- Forks
- 246
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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!
Guía de contribución
Línea de trabajo
Comienza en el punto de entrada de StyledFirebaseAuth y reproduce el flujo con firebaseAuthConfig.emailLinkSignIn.url establecido, comparándolo con la configuración funcional sin emailLinkSignIn. Comprueba si al hacer clic en el enlace del correo electrónico se invoca signInSuccessWithAuthResult y confirma que el usuario ha iniciado sesión y es redirigido a la URL configurada.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- javascript, react
- Área
- authentication, frontend
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 30/100