jainaayush05 / nextjs-firebase-auth-ssr-example

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.


Languages

Language:JavaScript 100.0%