firebase / firebase/firebaseui-web-react
Question: How to make use of `redirectUrl` inside `signInSuccessWithAuthResult`
- Langage dominant
- JavaScript
- Étoiles
- 1.3k
- Forks
- 246
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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!
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
L’issue mentionne signInSuccessWithAuthResult et redirectUrl, mais aucun fichier ni test. Commencez par localiser le callback de connexion et la gestion de redirectUrl dans le wrapper React, puis consultez la documentation de l’authentification. Le travail sera considéré comme terminé lorsqu’une approche clairement documentée pour les redirections après connexion basées sur les rôles sera disponible.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- firebase, javascript, react
- Domaine
- authentication
- Type d'issue
- Documentation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 15/100