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
✅ 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
- 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