#Persisting the Firebase Auth state client-side between hot reloads?

2 messages · Page 1 of 1 (latest)

clever hedge
#

I am trying to use Firebase Auth for my project, but I am having trouble persistent the auth state between hot reloads. I have tried changing the persistence with the setPersistence, but not had any luck.

To check if the user is signed in I have a useVisibleTask$ with the onAuthStateChanged

clever hedge
#

Solved, use getAuth instead of initializeAuth then it will persist 🙂