firebase / firebase/firebaseui-web-react

Question: How to make use of `redirectUrl` inside `signInSuccessWithAuthResult`

Aperta
#119 14 commenti 0 reazioni 0 assegnatari Vedi su GitHub
type: question
Lingua principale
JavaScript
Stelle
1.3k
Fork
246
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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!

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.