/nuxt-ssr-firebase-auth

Nuxt.js using SSR and Firebase with Authentication

Primary LanguageJavaScript

Nuxt.js Firebase Auth - SSR Version

This is an example of using Nuxt.js in SSR mode with Firebase Authentication

Live Demo

Files of Importance

  • /plugins/auth-cookie.js
  • /plugins/firebase-client-init.js
  • /services/firebase-admin-init.js
  • /middleware/auth-check.js
  • /store/index.js

Notes

For the Sign-In to work, you will need to add your production site url to the Firebase's Authorized Domains in the Authorization settings of the Firebase Console.

Credits

I got a lot of help understanding what needed to happen by looking at this so special thanks to the contributers of that project! Firebase Function - Handlebars Example