firebase / firebase/firebaseui-web-react
Question: How to make use of `redirectUrl` inside `signInSuccessWithAuthResult`
- Lenguaje dominante
- JavaScript
- Estrellas
- 1.3k
- Forks
- 246
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
Hello,
I'm using email link authentication for my app. In the app, there're two kinds of users, normal users and admin users, and I would like to be able to redirect them differently after a sign-in success. How would I do that? I've checked around but still have no idea. I'm thinking `redirectUrl` inside `signInSuccessWithAuthResult` might have something to do with this but I'm not sure. I'll really appreciate any help.
Just a note. I think as the last resort it's always possible to have the same redirect for both users, but render the views differently. But I would really appreciate any help or comment.
Thanks!
Guía de contribución
Línea de trabajo
El issue menciona signInSuccessWithAuthResult y redirectUrl, pero no indica archivos ni pruebas. Empieza por localizar el callback de inicio de sesión y el manejo de redirectUrl en el wrapper de React; después, revisa la documentación de autenticación. Se considerará terminado cuando exista un enfoque claramente documentado para las redirecciones posteriores al inicio de sesión basadas en roles.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- firebase, javascript, react
- Área
- authentication
- Tipo de issue
- Documentación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 15/100