[Vuejs]-Firebase Configuration not working in VueJs

0👍

Seems like this could be because you’re using onAuthStateChanged which is an observer that fires when the auth state changes.

https://firebase.google.com/docs/reference/js/firebase.auth.Auth#on-auth-state-changed

Adds an observer for changes to the user’s sign-in state.

Prior to 4.0.0, this triggered the observer when users were signed in, signed out, or when the user’s ID token changed in situations such as token expiry or password change. After 4.0.0, the observer is only triggered on sign-in or sign-out.

you should probably check the state manually first.

Leave a comment