firebase / firebase/firebaseui-web-react
Question: How to make use of `redirectUrl` inside `signInSuccessWithAuthResult`
- Vorherrschende Sprache
- JavaScript
- Sterne
- 1.3k
- Forks
- 246
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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!
Beitragsleitfaden
Rechercherichtung
Das Issue nennt signInSuccessWithAuthResult und redirectUrl, aber keine Dateien oder Tests. Beginne damit, den Sign-in-Callback und seine Verarbeitung von redirectUrl im React-Wrapper zu lokalisieren, und prüfe anschließend die Authentifizierungsdokumentation. Als erledigt gilt ein klar dokumentierter Ansatz für rollenbasierte Weiterleitungen nach der Anmeldung.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- firebase, javascript, react
- Bereich
- authentication
- Issue-Typ
- Dokumentation
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 15/100