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
npm
npm i firebase firebase-admin cookies js-cookie
-
If you use
yarn
yarn add firebase firebase-admin cookies js-cookie