I added Firebase auth to my Reactjs (and Redux) web app and everything works perfectly. I'm using email / password sign in, and call firebase.auth().signInWithEmailAndPassword which persists on reloads, tab changes, etc. However, after about an hour, the auth session appears to expire and currentUser is set to null. It feels like there should be a setting somewhere in the Firebase console, but after searching through it, I can't find anything.
Any help would be really appreciated!
firebase.auth().onAuthStateChangedlistener to determine the initial state of a user? - bojeilfirebase.auth().onAuthStateChangedup last night with a console log, but it's not helping too much. Immediately after logging in, it logs what appears to be a normal logged in status containing an email, refreshToken, uid, etc. Refreshing the page logs the same thing, however after an hour goes by, the log just returns 'null'. After that time, refreshing still returns null and the only way to get the user data back is to log out and back in. - npalansky