The Composition API Masterclass is out!
Sign-up for the Vue.js Masterclass 2024 Edition.
In this lesson, we update the fetchAuthUser action in order to use the id from the logged in user. We also utlize the authStateChange event in order to make sure we set the logged in user to the Vuex state whenever they are logged in. The result? Our application will always know about the user logged in with Firebase Authentication!