---
title: "One-time code"
description: "A sign-in or 2FA code, big enough to read from across the room."
url: https://www.unitpost.com/templates/gallery/one-time-code
section: Templates
updated: 2026-11-05
---
# One-time code

## One-time code

> A sign-in or 2FA code, big enough to read from across the room.

The OTP email: a status hero with a key icon, the code in a large tracked card with its expiry, and a callout that explains what to do if the request wasn't theirs. Indigo accent, wordmark header, nothing to click. The subject line carries the code so it shows in notifications.

Category: transactional · Group: Account & sign-in · Free

Default subject: {{code}} is your Northwind sign-in code

Best for:

- Sign-in codes and two-factor prompts
- Email verification by code
- Any one-time passcode

Layout, top to bottom:

- Wordmark
- Status hero
- Code card
- Not-you callout
- Sign-off

Variables:

- `{{code}}` — supplied per send (example: 482 913)
- `{{expiry_minutes}}` — supplied per send (example: 10)
- `{{device}}` — supplied per send (example: Chrome on macOS · Lisbon, Portugal)

Preview the rendered email, copy its HTML or React, or add it to a workspace at https://www.unitpost.com/templates/gallery/one-time-code.

This Markdown mirror omits the TSX and HTML source — open the gallery page for both, or clone the template into a workspace.

## Related

- [Magic sign-in link](https://www.unitpost.com/templates/gallery/magic-link): Passwordless sign-in with a single secure link.
- [Password reset](https://www.unitpost.com/templates/gallery/password-reset): Send a secure, time-boxed reset link.
- [Password changed](https://www.unitpost.com/templates/gallery/password-changed): Confirm a password change, with a one-step lock if it wasn't them.
