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.
安装
npx skills add better-auth/skills --skill two-factor-authentication-best-practicesnpx skills add better-auth/skills --skill two-factor-authentication-best-practices -a claude-code -gnpx skills add better-auth/skills --skill two-factor-authentication-best-practices -a codex -ggemini skills install https://github.com/better-auth/skills.git --path better-auth/twoFactorgh skill install better-auth/skills two-factor-authentication-best-practicesgit clone --depth 1 https://github.com/better-auth/skills /tmp/better-auth__skills
mkdir -p ~/.claude/skills ~/.agents/skills
cp -R /tmp/better-auth__skills/better-auth/twoFactor ~/.claude/skills/two-factor-authentication-best-practices # Claude Code
cp -R /tmp/better-auth__skills/better-auth/twoFactor ~/.agents/skills/two-factor-authentication-best-practices # Codex, Cursor, Gemini CLI, Copilot, OpenCode