Nextjs boilerplate for Nextjs v13+. With authentication and user management using cookie.
- Context API instead of external libraries
- Custom hooks approach
- Cookie storage
- Axios instance setup
- TypeScript
-
Clone this repo
git clone https://github.com/shinjith-dev/nextjs-auth.git next-auth
or with
ssh
git clone git@github.com:shinjith-dev/nextjs-auth.git next-auth
-
Install packages
cd next-auth yarn # or npm i
-
Start server
yarn dev # or npm run dev
To run this project, you will need to add the following environment variables to your .env file
NEXT_PUBLIC_BACKEND_URL = <your-backend-URL>
Contributions are always welcome!
See contributing.md
for ways to get started.