firebase / firebase/quickstart-nodejs

how to tell on the client side that the user is logged in when using node js and react

未关闭
#97 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
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

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。