two-factor-authentication-best-practices
Multi-factor authentication with TOTP, OTP, backup codes, and trusted device management for Better Auth.
Requirements & configuration
- Requires password verification. Returns TOTP URI (for QR code) and backup codes.
- encrypt: async (token) => myEncrypt(token),
- decrypt: async (token) => myDecrypt(token),
- Requires password confirmation. Revokes trusted device records:
Derived from the skill's own SKILL.md documentation · extracted 2026-07-23
Multi-factor authentication with TOTP, OTP, backup codes, and trusted device management for Better Auth.
Source
Repository: https://github.com/better-auth/skills
two-factor-authentication-best-practices FAQ
What does the two-factor-authentication-best-practices skill do?
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.
What does two-factor-authentication-best-practices require?
Requires password verification. Returns TOTP URI (for QR code) and backup codes. encrypt: async (token) => myEncrypt(token), decrypt: async (token) => myDecrypt(token), Requires password confirmation. Revokes trusted device records:
How do I install two-factor-authentication-best-practices?
Run: npx -y skills add https://github.com/better-auth/skills --skill two-factor-authentication-best-practices --agent claude-code — the source lives at github.com/better-auth/skills.
Maintain two-factor-authentication-best-practices?
Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.
[](https://getagentictools.com/skills/better-auth-skills-two-factor-authentication-best-practices?ref=badge) npx agentictools info skills/better-auth-skills-two-factor-authentication-best-practices The second line is the CLI lookup for this page — handy in READMEs and docs.