Skip to content
Auth & Onboarding
A. Auth & Onboarding

OTP / 2FA Verification

One-time codes, authenticator setup, backup codes, trusted devices and every error state in between.

9 screensDesktop · Tablet · MobileLight · Dark

Write every screen of this block into your project — the source is then yours to edit.

bash
npx @wunderui/cli add auth/otp

01OTP — Enter verification code

Uses: OtpCodeInput · TextLinkRow · Button

components/blocks/auth/otp/01-enter-code.tsx

022FA — Choose verification method

Uses: OptionRowGroup · Button

components/blocks/auth/otp/02-choose-method.tsx

032FA — Set up authenticator app

Uses: OtpCodeInput · Stepper · Button

components/blocks/auth/otp/03-setup-authenticator.tsx

042FA — Backup codes

Uses: BackupCode · Button · InlineNote

components/blocks/auth/otp/04-backup-codes.tsx

052FA — Trust this device

Uses: Checkbox · Button · UserInfo

components/blocks/auth/otp/05-trust-device.tsx

062FA — Recovery code entry

Uses: Input · TextLinkRow · Button

components/blocks/auth/otp/06-recovery-code.tsx

07OTP — Code expired / error state

Uses: OtpCodeInput · Alert · Button

components/blocks/auth/otp/07-code-expired.tsx

08OTP — Verification successful

Uses: Button · TextLinkRow

components/blocks/auth/otp/08-verification-successful.tsx

092FA — Enable two-factor prompt

Uses: Button · TextLinkRow · Badge

components/blocks/auth/otp/09-enable-2fa-prompt.tsx

← Sign In & Sign UpOnboarding Wizard →