# Application Auth Page: Backup Codes Page

Recovery code save step with an eight code grid, download and copy actions, a saved confirmation checkbox, and a one time use warning.

- Page: https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/backup-codes-page
- Collection: [Application](https://www.shadcn-ui-blocks.com/blocks/application-pro), Standard tier
- Group: [Auth Pages](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages)
- Created: 2026-07-04
- Preview image: https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/backup-codes-page.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/application-pro-auth-pages-backup-codes-page
```

Needs an API key from a Pro or Team plan: add `@shadcn-ui-blocks` to the registries in components.json with the key as an `Authorization: Bearer` header. Setup: https://www.shadcn-ui-blocks.com/docs/shadcn-cli. The MCP server installs it without the setup: https://www.shadcn-ui-blocks.com/docs/mcp.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: button, checkbox, label
- Installs to: `@/components/blocks/application-pro/auth-pages/backup-codes-page`

## About this block

Backup Codes Page is the one time recovery codes screen
shown right after two factor setup. Eight codes sit in a
two column mono grid, framed by a subheading that tells the
user each code signs them in once if they lose their
authenticator, and to store them like a password somewhere
off this device. Download .txt and Copy all buttons cover
the two ways people actually save them, and a saved-them
confirmation checkbox gates the intent before the Continue
to Acme button.

Codes are one const string array rendered into the grid.
The divider note is the honest part: these codes are shown
once, regenerating from Security settings invalidates all 8
immediately, and a used code never works twice. The footer
nudges toward paper, since a locked drawer beats a
screenshot sitting in a camera roll.

## When to use

Reach for this block as the final step of two factor
enrollment, wired to your recovery code generator. Render
the codes server side once and never show them again;
persist only their hashes so a used code can be retired.

A natural flow around it on an Application Pro page:

**Before**

- [Auth pages](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages)

**After**

- [Settings pages](https://www.shadcn-ui-blocks.com/blocks/application-pro/settings-pages)

## What you can display

One strong use is post-enrollment code reveal. Other
shapes:

- **Regenerate confirm.** The same grid with a warning that
  the previous set is now dead before the new codes show.
- **Codes remaining.** A settings view counting how many of
  the 8 are still unused, with a regenerate action.
- **Print layout.** A stripped card sized for paper with
  the account name and generation date in the header.

> Tip: gate the Continue button behind the saved-them
> checkbox; the friction is the point, since a user who
> clicks past this screen is the one who files a lockout
> ticket a month later.

## More in Application Auth Pages

- [Accept Invite Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/accept-invite-page)
- [Account Linking Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/account-linking-page)
- [Account Recovery Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/account-recovery-page)
- [Approval Pending Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/approval-pending-page)
- [Deactivated Account Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/deactivated-account-page)
- [Device Approval Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/device-approval-page)
- [Email Changed Confirm](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/email-changed-confirm)
- [Forgot Password Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/forgot-password-page)
- [Join Workspace Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/join-workspace-page)
- [Locked Account Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/locked-account-page)
- [Magic Link Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/magic-link-page)
- [MFA Enrollment Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/mfa-enrollment-page)
- [Oauth Callback Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/oauth-callback-page)
- [Oauth Consent Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/oauth-consent-page)
- [Passkey Setup Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/passkey-setup-page)
- [Password Expired Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/password-expired-page)
- [Reset Password Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/reset-password-page)
- [Session Expired Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/session-expired-page)
- [Sign In Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/sign-in-page)
- [Sign Up Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/sign-up-page)
- [Sso Error Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/sso-error-page)
- [Sso Login Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/sso-login-page)
- [Two Factor Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/two-factor-page)
- [Verify Email Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/verify-email-page)
- [Welcome Back Login](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/welcome-back-login)
- [Workspace Picker Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/workspace-picker-page)
