how to tell on the client side that the user is logged in when using node js and react
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 20/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- firebase, javascript, node.js, react
调研方向
首先将 React 客户端 auth 设置与链接的 auth-sessions/app.js 示例进行比较,并检查 app.auth().onAuthStateChanged 回调。确定为什么该回调在几分钟后不再提供预期的登录状态;完成的标准是 React 端能够可靠地识别用户是否已登录。
由索引模型根据 Issue 内容生成。
描述
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) => {
- 主要语言
- JavaScript
- 星标
- 933
- 派生
- 426
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
firebase/quickstart-nodejs 的其他 Issue
-
Ok 未关闭
难度 5/5 一周以上 新手友好度 5/100
firebase/quickstart-nodejs#305 ·
-
难度 4/5 3-5 天 新手友好度 25/100
firebase/quickstart-nodejs#253 ·
-
难度 5/5 一周以上 新手友好度 20/100
firebase/quickstart-nodejs#194 · 3 条评论 · 8 个 reaction ·
-
难度 2/5 1-3 小时 新手友好度 35/100
firebase/quickstart-nodejs#183 · 2 条评论 ·
-
难度 4/5 3-5 天 新手友好度 24/100
firebase/quickstart-nodejs#106 · 6 条评论 · 3 个 reaction ·
查看 firebase/quickstart-nodejs 的全部 Issue
相似的 Issue
-
难度 1/5 1-3 小时 新手友好度 86/100
DavidAnson/markdownlint-cli2#940 ·
-
documentation
难度 2/5 1-3 小时 新手友好度 88/100
githubnext/gh-aw-workshop#3692 ·
-
agent/guide documentation hive/hosted-available-lke648397-260827-5n31
难度 2/5 1-3 小时 新手友好度 90/100
-
Add: BuyPass TV 未关闭channels:add check:passed
难度 2/5 1-3 小时 新手友好度 75/100
-
S: triage
难度 1/5 1 小时以内 新手友好度 85/100