A simple project to demonstrate how to create an authentication system using Next.js without using any authentication dependencies.
List of dependencies used in this project:
next
(v^15)react
(v^19)typescript
jose
server-only
tailwind
(v^4)shadcn
(@canary)zod
Instructions on how to install and set up the project.
-
Clone the repository:
git clone https://github.com/rxtsel/next-auth-without-auth-deps.git
-
Navigate to the project directory
cd next-auth-without-auth-deps
-
Install dependencies
pnpm install
Instructions on how to use the project.
-
Create a
.env
file in the root of the project and add the following environment variables:SESSION_SECRET=this-is-a-amazing-secret-key
-
Run the project:
pnpm dev