Skip to content

Next.js Firebase authentication example. Including SSR authentication state.

Notifications You must be signed in to change notification settings

ThomasSwolfs/nextjs-firebase-auth-ssr-example

Repository files navigation

nextjs-firebase-ssr-auth-example

Next.js example with firebase authentication. Including authentication check at SSR.

How to use

npm install

Set up a firebase project

Create an .env file, based on .env example. Fill out your Firebase project properties.

npm run dev

http://localhost:3000/signin -> example signin page http://localhost:3000/user -> example authentication check in 'getServerSideProps'

Example explained in medium post:

https://medium.com/@thomasswolfs/next-js-firebase-authentication-including-ssr-1045b097ee18

About

Next.js Firebase authentication example. Including SSR authentication state.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published