Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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

Open
#97 1 comment 0 reactions 0 assignees View on GitHub

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

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from firebase/quickstart-nodejs

All issues in firebase/quickstart-nodejs

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.