Skip to content

A fully-featured authentication starter template with SignIn, SignUp, Forgot Password, Email Verification, Role-Based Access, and Social Login using Google and GitHub.

Notifications You must be signed in to change notification settings

dinesh-jaysiri/next-auth

Repository files navigation

🔐 NextAuth Starter Template

NextAuth Starter Template is a fully-featured authentication system built with Next.js, Auth.js v5, Prisma, and PostgreSQL. It includes email/password authentication, social login (Google & GitHub), role-based access control, email verification, and session management. The project also provides a settings page for managing authentication preferences, such as enabling/disabling two-factor authentication and updating email/passwords.

🚀 Live Demo: NextAuth Starter
📂 GitHub Repo: dinesh-jaysiri/next-auth


✨ Features

Sign In & Sign Up - Secure email/password authentication
Social Login - Google & GitHub OAuth integration
Forgot Password & Reset Password - Secure password recovery
Email Verification - Ensure user authenticity before login
Role-Based Authentication - Restrict access based on roles (Admin, User, etc.)
Two-Factor Authentication (2FA) - Enable/disable via settings page
Update Email & Password - Users can modify credentials securely
Session Management - Server & client-side session handling hooks
Transactional Emails - Send verification & password reset emails via Resend API


🛠️ Tech Stack

  • Frontend: Next.js (App Router), TypeScript, ShadCN UI
  • Authentication: Auth.js v5 (NextAuth)
  • Database: Prisma ORM with Neon PostgreSQL
  • Email Service: Resend API for email verification & password reset
  • State Management: React Context API

About

A fully-featured authentication starter template with SignIn, SignUp, Forgot Password, Email Verification, Role-Based Access, and Social Login using Google and GitHub.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published