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)