Lucia

Email and password with 2FA and WebAuthn

Example project with:

  • Email and password authentication
  • Password checks with HaveIBeenPwned
  • Sign in with passkeys
  • Email verification
  • 2FA with TOTP
  • 2FA recovery codes
  • 2FA with passkeys and security keys
  • Password reset with 2FA
  • Login throttling and rate limiting

GitHub repositories