Lightlines
Catalogue
Sign in
By better-auth

two-factor-authentication-best-practices

better-auth

Secure sign-in with TOTP, OTP, and recovery codes.

authentication security

What it does

Configures Better Auth for TOTP, email or SMS OTP, backup codes, trusted devices, and 2FA sign-in flows.

When to use it

Use when users need MFA, multi-factor authentication, authenticator setup, or login security with Better Auth.

How to use it

Give it a project and an MFA sign-in goal; it returns Better Auth 2FA configuration and implementation guidance in the project.

What you provide

  • MFA sign-in flow
  • An existing project

Access · 0

No additional actions listed in the analysis.

What you need · 2

The project must use the `better-auth` package and its two-factor plugins.

The package enables rendering a QR code for TOTP setup.


About this skill

Visibility
Public
Repository
better-auth/skills
Created
Oct 8, 2026
Updated
Oct 8, 2026
Files
1