I got the ideas from damien-hl/nuxt3-auth-example and tried to integrate it with Firebase as the Auth provider.
https://ajahandideh.com/articles/nuxt3-ssr-firebase-auth
- Clone the repo
- Create a Firebase project and get your config
- Create a service account in Firebase dashboard and download the json file
- Enable Google oAuth in Firebase dashboard
- Using 2 and 3, create a
.env
file in the root of the project (use the env.sample as a template) yarn install
andyarn dev
to run the project