
next-auth-template
A Next.js based template that provides authentication via Better Auth.
Supports multiple authentication methods including email and password, passkeys, OAuth, and magic links.
Users can change their email or password, delete their account, enable TOTP two-factor authentication, and invalidate sessions. Emails are sent with SMTP or the SES API.
README
Supported Authentication Methods:
- Email+Password
- Passkeys
- Discord/Google OAuth
- Magic Link
Features
- Email/Password Change
- Account Deletion
- TOTP 2fa
- Captchas
Emails can be sent using an SMTP provider or AWS' SES API
.env.example contains all relevant env variables.