Auth 4 – Passkey sign in with password fallback
- from @shadcncraft
Passkey (WebAuthn) sign-in card with a password fallback in the same form. Use when your app supports passkeys but some people still need a password. Includes a waiting-for-device state, a no-passkey error that offers the password, a wrong-password error that links to reset, and react-hook-form and zod validation.
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-4Registry dependencies6
- button
- card
- field
- input
- input-group
- spinner
