Pattern for firebase onAuthStateChanged & Navigation Guards - Quasar app
问题 I am facing an issue in my Quasar app with regards to browser refresh and firebase authentication. After a user logs in and then clicks on the browser refresh, then the firebase.auth().currentUser returns null (as this executes asynchronously). This means that when the beforeEach gets executed the currentUser is null and the user is prompted with the logon page. However I see that when the callback to onAuthStateChanged is getting invoked the user is getting set correctly. Is there any