[Vuejs]-Role-Based Authentication vue js firebase

1👍

firebase.auth().onAuthStateChanged is asynchronous, so next() at the end of your router guard gets invoked without waiting for firebase.auth().onAuthStateChanged to resolve, meaning your router guard lets everyone through.

Leave a comment