how to tell on the client side that the user is logged in when using node js and react
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 20/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- firebase, javascript, node.js, react
- Domain
- authentication, frontend
Research direction
Start by comparing the React client-side auth setup with the linked auth-sessions/app.js example and inspect the app.auth().onAuthStateChanged callback. Determine why the callback stops providing the expected login state after a few minutes; done means the React side reliably identifies whether the user is logged in.
Written by the indexing model from the issue text.
Description
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) => {
- Dominant language
- JavaScript
- Stars
- 933
- Forks
- 426
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from firebase/quickstart-nodejs
-
Ok Open
Difficulty 5/5 Over a week Newbie friendliness 5/100
firebase/quickstart-nodejs#305 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
firebase/quickstart-nodejs#253 ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
firebase/quickstart-nodejs#194 · 3 comments · 8 reactions ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
firebase/quickstart-nodejs#183 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 24/100
firebase/quickstart-nodejs#106 · 6 comments · 3 reactions ·
All issues in firebase/quickstart-nodejs
Similar issues
-
bug customer-eng Durable Agents Inngest status: needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
optimization optimization:agents-md-curator
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
githubnext/gh-aw-cao#13475 ·
-
[BUG]: "Clear All" in Settings doesn't clear the saved analysis, old data comes back after reload Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
AOSSIE-Org/OrgExplorer#253 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
oxc-project/oxc#26944 ·
-
ai-observability bug team/ai-observability
Difficulty 2/5 1-3 hours Newbie friendliness 78/100