A template for NextJS and Firebase authentication
Clone the project
git clone [email protected]:eabalderama/nextjs-firebase-auth.gitGo to the project directory
cd nextjs-firebase-authInstall dependencies
npm installStart the development server
npm run devTo run this project, you will need to create a Firebase Project
Enable the authentication in the dashboard and copy the firebase config in the project settings
In the Authentication Section, go to the Sign-In Method tab and enable both Google and Github Sign-in. For the Github Sign-In you need to create an OAuth App in github settings, copy the client id and client secret and paste it in the Sign-In Method in Firebase
To run this project, you will need to add the following environment variables to your .env file
Firebase API KEY
NEXT_PUBLIC_API_KEY
Firebase auth domain
NEXT_PUBLIC_AUTH_DOMAIN