Auth MFA Passkey
Second-factor authentication with TOTP app (Google Authenticator, 1Password).
Choose the primitives library your project already uses. Both look the same: your theme, not the variant, controls colors, shape, type and motion.
About this feature
What it's for
- Second-factor authentication with TOTP app (Google Authenticator, 1Password).
- Biometric authentication with Passkey (Touch ID, Face ID, YubiKey).
- Emergency access using downloadable backup recovery codes.
Includes
- Totp authentication
- Passkey authentication
- Recovery codes
- Segmented otp
- Resend cooldown
- Device trust
Works with
- Radix UI and Base UI primitives (pick the one your project uses)
- React 19, Next.js App Router and Tailwind CSS 4, installed with the shadcn CLI
- Your theme tokens, in light and dark mode
Install
Included with Agentic UI Kit (one-time license). Install needs your license key: see pricing · connect your project.
Agentic UI CLI
agentic-ui add auth-mfa-passkeyInstalls through shadcn and adapts the component to your design tokens.
shadcn CLI
npx shadcn@4.17.0 add @agentic-ui/auth-mfa-passkeyUsed in
A standalone component: drop it into any screen.
- Type
- Feature
- Variants
- Radix UI and Base UI
- Themes
- Light and dark
- Widths
- Preview it at desktop, tablet and mobile widths above.
- Sample data
- Ships with sample data in
qr-code-mock.tsx; replace it with your own.
- npm packages
lucide-react- Registry dependencies
lib-primitives- Files
10 files
- components/agentic-ui/auth-mfa-passkey/index.tsx
- components/agentic-ui/auth-mfa-passkey/types.ts
- components/agentic-ui/auth-mfa-passkey/methods/recovery-codes-method.tsx
- components/agentic-ui/auth-mfa-passkey/components/recovery-codes-view.tsx
- components/agentic-ui/auth-mfa-passkey/methods/passkey-method.tsx
- components/agentic-ui/auth-mfa-passkey/methods/totp-method.tsx
- components/agentic-ui/auth-mfa-passkey/components/qr-code-mock.tsx
- components/agentic-ui/auth-mfa-passkey/otp-input.tsx
- components/agentic-ui/auth-mfa-passkey/components/method-selector.tsx
- components/agentic-ui/auth-mfa-passkey/auth-mfa-passkey.tsx
Related components
Auth Forgot Reset
Access recovery in multi-tenant SaaS.
Details and live previewAuth Login Signup
Sign-in to a SaaS dashboard with email, GitHub and Google.
Details and live previewAgency Image Annotation
Client review of design proofs in an agency portal.
Details and live previewAI Agent Run Trace
Agent debug panel showing reasoning, tool calls with input/output, and the final response.
Details and live preview