---
name: "two-factor-authentication-best-practices"
description: "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."
slug: "two-factor-authentication-best-practices"
metadata:
  sources:
    -
      kind: "github-dir"
      commit: "6a1636950a1d7fc53602639ce7505a4a5d39c797"
      path: "better-auth/twoFactor"
      repo: "better-auth/skills"
      trackingRef: "main"
      url: "https://github.com/better-auth/skills"
key: "better-auth/skills/two-factor-authentication-best-practices"
---

