firebase / firebase/quickstart-nodejs

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

Aperta
#97 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
933
Fork
425
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
firebase, javascript, node.js, react
Ambito
authentication, frontend
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
20/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.