firebase / firebase/quickstart-nodejs

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

Offen
#97 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
933
Forks
425
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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) => {`

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
firebase, javascript, node.js, react
Bereich
authentication, frontend
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
20/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.