I am new to React and I am attempting to implement a persistent state for sessions using firebase for a personal project. I currently have within the auth.js file:
export const sessionState = (email, password) => {
auth.setPersistence(auth.Persistence.SESSSION)
.then(() =>
auth.signInWithEmailAndPassword(email, password)
)};
But it's still loading with a local state persistence, I've looked at the documentation: https://firebase.google.com/docs/auth/admin/manage-sessions and https://firebase.google.com/docs/auth/web/auth-state-persistence
returnno ? - GameTag