Skip to content

A simple project to demonstrate how to create an authentication system using Next.js without using any authentication dependencies.

Notifications You must be signed in to change notification settings

rxtsel/next-auth-without-auth-deps

Repository files navigation

Next Auth Without Auth Deps

Description

A simple project to demonstrate how to create an authentication system using Next.js without using any authentication dependencies.

Dependencies

List of dependencies used in this project:

  • next (v^15)
  • react (v^19)
  • typescript
  • jose
  • server-only
  • tailwind (v^4)
  • shadcn (@canary)
  • zod

Diagram Scheme

Nextjs Basic Auth Architecture

Installation

Instructions on how to install and set up the project.

  1. Clone the repository:

    git clone https://github.com/rxtsel/next-auth-without-auth-deps.git
  2. Navigate to the project directory

    cd next-auth-without-auth-deps
  3. Install dependencies

    pnpm install

Usage

Instructions on how to use the project.

  1. Create a .env file in the root of the project and add the following environment variables:

    SESSION_SECRET=this-is-a-amazing-secret-key
  2. Run the project:

     pnpm dev