Next-Auth Authentication Template is a starter template for building authentication systems using Next.js and Next-Auth.js and MongoDB. It provides a quick and easy way to set up user authentication in your Next.js applications.
- Next.js: Built on top of Next.js, a React framework for building server-side rendered and statically generated web applications.
- Next-Auth.js: Integrated with Next-Auth.js for authentication, supporting various authentication providers such as email/username/password, OAuth, and more.
- Middleware: Secure pages by using middleware.js , it use token info and callback function from Next-Auth.js.
- JWT Authentication: Uses JSON Web Tokens (JWT) for secure authentication and authorization.
- Customizable: Easily customizable to fit your project's specific requirements and design.
- Database: It use MongoDB as database , there is user model and register router in api.
- Clone the project:
git clone https://github.com/fevziatanoglu/Next-Auth-Authentication-Template.git
- Navigate to the project directory:
cd Next-Auth-Authentication-Template
- Install the required packages:
npm install
- Start the development server:
npm run dev
- Visit
http://localhost:3000
in your browser to view the application.