Skip to content

eabalderama/nextjs-firebase-auth

Repository files navigation

NextJS 14 + Firebase Auth

A template for NextJS and Firebase authentication

Run Locally

Clone the project

  git clone [email protected]:eabalderama/nextjs-firebase-auth.git

Go to the project directory

  cd nextjs-firebase-auth

Install dependencies

  npm install

Start the development server

  npm run dev

Firebase

To 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

Enabling Sign-In Methods

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

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

Minimum Required Environmment Variables

Firebase API KEY

NEXT_PUBLIC_API_KEY

Firebase auth domain

NEXT_PUBLIC_AUTH_DOMAIN

About

NextJS 14 with Firebase Authentication

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors