-
store/index.js
nuxtServerInit checks for the cookie, and sets user to store on server.
-
store/users/index.js
Where login action happens and JWT cookie from Firebase is set.
-
middleware/authenticated.js
Where routes are authenticated and redirects happen if !user.
-
pages/index.vue
Where the login form resides.
jay8t6 / nuxt-fire-auth Goto Github PK
View Code? Open in Web Editor NEWThis project forked from eckhardt-d/nuxt-fire-auth
Example showcasing authentication in Nuxt with Firebase.