Skip to content

shinjith-dev/nextjs-auth

Repository files navigation

Next.js Auth

Nextjs boilerplate for Nextjs v13+. With authentication and user management using cookie.

Features

  • Context API instead of external libraries
  • Custom hooks approach
  • Cookie storage
  • Axios instance setup
  • TypeScript

Installation

  • 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

Environment Variables

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

NEXT_PUBLIC_BACKEND_URL = <your-backend-URL>

Contributing

Contributions are always welcome!

See contributing.md for ways to get started.

About

Boilerplate for Nextjs authentication and user management

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published