firebase / firebase/quickstart-nodejs
how to tell on the client side that the user is logged in when using node js and react
オープン
- 主要言語
- JavaScript
- スター
- 933
- フォーク
- 425
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
I used the following code (https://github.com/firebase/quickstart-nodejs/blob/master/auth-sessions/app.js) to log a user in using React and Nodejs and Firebase. I can tell if someone is logged in using NodeJs, but not on the ReactJs side. I used the code and that does not work after a few minutes:
`app.auth().onAuthStateChanged((user) => {`
コントリビューションガイド
調査の方向性
まず、React クライアント側の auth セットアップをリンク先の auth-sessions/app.js の例と比較し、app.auth().onAuthStateChanged コールバックを調査します。数分後にコールバックが期待されるログイン状態を提供しなくなる理由を特定します。完了の条件は、React 側でユーザーがログインしているかどうかを確実に判定できることです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- firebase, javascript, node.js, react
- 領域
- authentication, frontend
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 20/100