Vue.js 3 Options API Masterclass
Plans from $25/month

This lesson is for members. Join us?

Subscribe now to get instant access to this course, plus a full library of Vue.js courses tailored to the plan you choose.

Signing the User in after Registration

🚧 PLEASE NOTE: This masterclass is built with the Options API
vuejs-masterclass

The Composition API Masterclass is coming soon!

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!