Nuxt JS: Keep user logged in with Firebase Auth and also fetch the necessary User data from Cloud Firestore and put it in your Vuex store if the user is already logged in before rendering the page
Install the required packages.
-
If you use
npmnpm i firebase firebase-admin cookies js-cookie -
If you use
yarnyarn add firebase firebase-admin cookies js-cookie