I haven’t used firebase before and not sure what best practices are for using firebase, but it appears you are trying to check authentication before your main component is created. Again as I have not used firebase, what I would do with a regular spa jwt is to take all auth logic and set it in an app plugin. you can read more about this in quasar docs. Then I would set another plugin for my routerHooks (utilise beforeRouteEnter to check for auth and redirect accordingly) so this would serve as an auth middleware.
To create an app plugin you need to first create a file in plugin folder either manually or using quasar cli(recommended)
// first import firebase and whatever you need
export default ({ app, router, store, Vue }) => {
// add your code here to check for auth user and interact with store
}
Next you need to make sure you register the plugin in quasar.conf (refer to docs).
Another way this can be done is to use the preFetch feature, check it out maybe it helps.