Two Factor Authentication Best Practices
Multi-factor authentication with TOTP, OTP, backup codes, and trusted device management for Better Auth.
- Type
- Skill
- Author
- better-auth
- Category
- Security
- GitHub stars
- 226
- Installs
- 34.4K
- Last updated
- October 19, 2026
Install
npx skills add https://github.com/better-auth/skills --skill two-factor-authentication-best-practicesUse cases
- Add a TOTP second factor to a Better Auth login flow
- Generate and store backup codes for account recovery
- Manage trusted devices so users skip MFA on known browsers
Frequently Asked Questions
Which second-factor methods does this skill cover?
It covers TOTP, OTP, backup codes, and trusted device management for Better Auth.
Does it handle account recovery?
Yes, the skill addresses both the setup and the recovery paths for multi-factor authentication.
What is this skill for?
Adding a second factor to an app's login flow built on Better Auth.
About this skill
Covers multi-factor authentication for Better Auth, including TOTP, OTP, backup codes, and trusted device management. It's for adding a second factor to an app's login flow. The skill addresses both the setup and the recovery paths.
Summary written with AI assistance from the project's public description.
Categories
More from better-auth
Better Auth Best Practices
Complete Better Auth server and client setup with database adapters, session management, plugins, and security configuration.
by better-auth
Better Auth Security Best Practices
Configure rate limiting, manage auth secrets, set up CSRF protection, define trusted origins, secure sessions and cookies, encrypt OAuth tokens, tr...
by better-auth
Email And Password Best Practices
Email verification, password reset flows, and customizable password policies for Better Auth.
by better-auth
Organization Best Practices
Multi-tenant organization setup with member management, role-based access control, and team support via Better Auth.
by better-auth
Similar Skills
Find Skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", o...
by vercel-labs
Grill Me
A relentless interview to sharpen a plan or design.
by mattpocock
Ai Video Generation
Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0,...
by inference-sh
Ai Image Generation
Generate AI images with GPT-Image-2, FLUX, Gemini, Grok, Seedream, Reve and 50+ models via inference.sh CLI. Models: GPT-Image-2, FLUX Dev LoRA, FL...
by inference-sh