Domains
Forms
Domains
Forms
Mechanism
Breaks down how the skill works and what it produces, so you can quickly judge whether it fits your scenario and value.
When users need to add MFA, TOTP authenticator, OTP via email/SMS, backup codes, or trusted device handling to a Better Auth TypeScript/JS app.
twoFactor() server plugin and twoFactorClient() client pluginnpx @better-auth/cli migrate to update DB schemaA hardened auth setup with working 2FA flows, backup recovery, and secure session handling via Better Auth.
Use Cases
A developer building a SaaS app with Better Auth wants to protect user accounts from password leaks. They use this skill to enable TOTP via authenticator apps and email OTP, set encrypted backup codes, and implement the 2FA sign-in redirect. Result: users get MFA with recovery options, boosting account security and compliance.
A team maintains an internal tool and needs login security with trusted devices. Using this skill, they configure 30-day trusted device caching, rate-limited OTP, and backup code regeneration. It solves phishing risks and reduces repeated prompts, giving employees smooth yet secure access.
Skill Relationships
Dependency relationships read as "the upper tier points to the lower tier." The current Skill sits in the middle tier — above are Skills that depend on it, below are Skills it depends on.
Tier 1 · These Skills Use Me
Tier 2 · Current Skill
Tier 3 · I Use These Skills
Browse this skill's relationships within its skillset. Click a node to switch the side panel; use the search box to jump to any skill.
Skill File