Skip to content

Instantly share code, notes, and snippets.

View ChristPetitjean's full-sized avatar
🏠
Working from home

Christophe Petitjean ChristPetitjean

🏠
Working from home
View GitHub Profile
@isaumya
isaumya / nuxt-js-firebase-auth-and-cloud-firestore.md
Last active September 14, 2023 12:29
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

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

Step - 1

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