Skip to content

Latest commit

 

History

History
35 lines (33 loc) · 1.61 KB

README.md

File metadata and controls

35 lines (33 loc) · 1.61 KB

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)