firebase / firebase/firebaseui-web-react

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

オープン
#119 コメント 14 件 リアクション 0 件 担当者 0 名 GitHub で見る
type: question
主要言語
JavaScript
スター
1.3k
フォーク
246
PR マージ指標
30日以内にマージされた PR はありません

説明

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!

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Issue では signInSuccessWithAuthResult と redirectUrl が挙げられていますが、ファイルやテストは示されていません。まず React wrapper 内のサインインコールバックと redirectUrl の処理箇所を特定し、その後、認証ドキュメントを確認してください。ロールベースのサインイン後リダイレクトについて、明確に文書化されたアプローチがあれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
firebase, javascript, react
領域
authentication
issue の種類
ドキュメント
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
15/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。