Skip to content

A Next.js starter template for authentication using Auth.js (Next-Auth v5). Features include user registration, login, password reset, and OAuth integration.

Notifications You must be signed in to change notification settings

DragonSenses/nextjs-auth-starter

Repository files navigation

nextjs-auth-starter

A Next.js starter template for authentication using Auth.js (NextAuth.js v5). Includes user registration, login, password reset, and OAuth support. This is still a Work-in-Progress.

Description

Work-in-Progress

Technologies:

  • Next.js 14
  • Auth.js
  • TypeScript
  • React
  • TailwindCSS
  • PostgreSQL and Prisma ORM for database
  • shadcn/ui for component collection

Specifications

Features

  • Auth.js (Next-auth v5)
  • Next.js 14
  • User registration
  • Password reset
  • Email verification
  • OAuth Provider (Social login with Google & GitHub)
  • Two factor verification (2FA)

Prerequisites

  • Node.js 18.17 or higher
  • macOS, Windows (including WSL), and Linux are supported.

Setup instructions

1. Clone this repo (or download zip on GitHub)

2. Go to the directory the files are located

In the terminal:

```powershell
cd /nextjs-auth-starter
```

3. Install dependencies

In the terminal:

```powershell
npm install
```

4. Run the app locally

In the terminal:

```powershell
npm run dev
```

With the browser of your choice, navigate to the link: http://localhost:3000

What is Auth.js?

Auth.js is a runtime agnostic library based on standard Web APIs that integrates deeply with multiple modern JavaScript frameworks to provide an authentication experience that’s simple to get started with, easy to extend, and always private and secure!

Authentication methods

There are 4 ways to authenticate users with Auth.js:

About

A Next.js starter template for authentication using Auth.js (Next-Auth v5). Features include user registration, login, password reset, and OAuth integration.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published