Skip to content

kazukinagata/next-firebase-auth-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a Next.js x Firebase boilerplate that includes following;

  • chakra-ui
  • Configured Firebase auth context, use useAuthCtx to retrieve current user

Getting Started

Install packages and run the development server:

npm install
# or
yarn
npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

Utils

useAuthCtx

  const {currentUser, loading, setCurrentUser} = useAuthCtx()
  // currentUser: firebase.User | null
  // loading: boolean
  // setCurrentUser: (user?: firebase.User) => void

Lisence

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published