Skip to content

Nextjs 14 w/ Next-Auth v5, Prisma, zod, react-hook-form | Forgot password | email verification | 2FA | User Roles | Rate Limiting

Notifications You must be signed in to change notification settings

zenWai/nextjs14-next-authv5-app-router

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Next.js NextAuth v5

Tests View Test Report

Key Features:

  • 🔐 Next-auth v5 (Auth.js)
  • 🚀 Next.js 14 with server actions
  • 🔑 Credentials Provider
  • 🪄 Magic-Link Authentication
  • 🌐 OAuth Provider (Social login with Google & GitHub)
  • 🛑 Registration Restriction, maximum of 2 accounts per user
  • 🔒 Forgot password functionality
  • ✉️ Email verification
  • 📱 Two factor verification (2FA)
  • 👥 User roles
  • 🔓 Login component
  • 📝 Register component
  • 🤔 Forgot password component
  • ✅ Verification component
  • ⚠️ Error component
  • 🚧 Role Gate
  • 👑 Render content for admins using RoleGate component
  • 📈 next-auth session
  • 🔄 next-auth callbacks
  • 💎 CustomAdapter extends PrismaAdapter
  • 🖥️ Example with server component
  • 💻 Example with client component
  • 🛡️ Protect API Routes for admins only
  • 🔐 Protect Server Actions for admins only
  • 📧 Change email with new verification in Settings page
  • 🔑 Change password with old password confirmation in Settings page
  • 🔔 Enable/disable two-factor auth in Settings page
  • 🔄 Direct Change user role in Settings page (for dev&testing purposes)