Auth 14 – Two-factor challenge card
- from @shadcncraft
Two-factor (2FA) sign-in challenge card: a six-digit authenticator-app OTP code with a trust-this-device option, and a switch to a single-use backup code. Use after password sign-in for accounts with two-step verification. Includes react-hook-form and zod validation, wrong-code and spent-backup-code errors, and a Signed in state.
Install
New to shadcn? Set up your project
If your project already has a shadcn components.json, skip initialization. Otherwise, run this once from your project root.
pnpm dlx shadcn@latest initpnpm dlx shadcn@latest add @shadcncraft/auth-14Registry dependencies7
- button
- card
- checkbox
- field
- input
- input-otp
- spinner
