two-factor-authentication-best-practices

Originally frombetter-auth/skills
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";
Installs
28
GitHub Stars
6.1K
First Seen
May 3, 2026
two-factor-authentication-best-practices — midudev/autoskills