two-factor-authentication-best-practices

Installation
SKILL.md

Setup

  1. Add twoFactor() plugin to server config with issuer
  2. Add twoFactorClient() plugin to client config
  3. Run npx @better-auth/cli migrate
  4. Verify: check that twoFactorSecret column exists on user table
import { betterAuth } from "better-auth";
import { twoFactor } from "better-auth/plugins";
Related skills

More from better-auth/skills

Installs
15.5K
GitHub Stars
191
First Seen
Feb 10, 2026