firebase / firebase/firebaseui-web-react
emailLinkSignIn not working
- 主要言語
- JavaScript
- スター
- 1.3k
- フォーク
- 246
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
When setting `firebaseAuthConfig` (to be given to `StyledFirebaseAuth`), if `emailLinkSignIn`
is set and `url` inside it is defined, the sign-in is not successful, in the sense that clicking the email link won't sign the user in (and the `signInSuccessWithAuthResult` callback is not invoked --- this is where I set cookies and only if the cookies are set can a user be identified as having signed in). If I don't set `emailLinkSignIn` then everything is working fine.
What could be the problem, and how could it be fixed?
P.S. Just a note that when I have `emailLinkSignIn` set, I do see the `url` is visited but somehow the sign-in is not successful.
Another note: if I'm already signed-in, then including `emailLinkSignIn` and going through a new sign-in (an email is entered, the link is clicked) will send me to the `url` inside `emailLinkSignIn` successfully.
Updated: I've found out that if `url` points back the `auth` (it's where I ask for the emails) then it will be a success. I don't understand the current behaviour or if I'm using it correctly. Any help will be appreciated.
Thanks!
コントリビューションガイド
調査の方向性
StyledFirebaseAuth のエントリポイントから開始し、firebaseAuthConfig.emailLinkSignIn.url を設定した状態でフローを再現して、emailLinkSignIn を使用しない動作する構成と比較します。メールリンクをクリックすると signInSuccessWithAuthResult が呼び出されるかを追跡し、ユーザーがサインインして設定された URL にリダイレクトされることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, react
- 領域
- authentication, frontend
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 30/100