> **two-factor-authentication-best-practices** — skill 5 of 6 in [better-auth/skills](https://skillsdocs.com/better-auth/skills).
>
> Book (all skills, one file): https://skillsdocs.com/better-auth/skills.md
> Machine manifest: https://skillsdocs.com/better-auth/skills/.well-known/agent-skills/index.json
> Install the book: `npx skills add better-auth/skills`
> Upstream: https://github.com/better-auth/skills/blob/main/better-auth/twoFactor/SKILL.md @ `main`
> Raw bytes, no header: https://raw.githubusercontent.com/better-auth/skills/main/better-auth/twoFactor/SKILL.md
> Base for relative paths: https://raw.githubusercontent.com/better-auth/skills/main/better-auth/twoFactor/
> Licence: No licence detected — all rights reserved by its authors
>
> Content © its authors. This skill's body is not served here; the links above are. Takedown: https://github.com/DreambaseAI/skillsdocs/issues/new?labels=takedown&title=Takedown+request

# two-factor-authentication-best-practices

Configure TOTP authenticator apps, send OTP codes via email/SMS, manage backup codes, handle trusted devices, and implement 2FA sign-in flows using Better Auth's twoFactor plugin. Use when users need MFA, multi-factor authentication, authenticator setup, or login security with Better Auth.

No licence could be detected for this skill at either the repository or the skill level, so its body is not reproduced here. Read it upstream:

https://raw.githubusercontent.com/better-auth/skills/main/better-auth/twoFactor/SKILL.md
