


One-time code
LedgerA six-digit code, one digit per box, with the expiry beside it.
A passwordless sign-in email where the button is the whole email, with the link lifetime and where the request came from.
Passwordless sign-in lives or dies on how fast someone can find the button, so this template has almost nothing else: the address being signed in, the button, and one muted line saying the link works once and expires in 15 minutes. The fallback URL sits under a hairline for clients that strip buttons, and a closing note names the browser and city of the request so a stranger's attempt is obvious. It takes the email, sign-in URL and request details as props, which maps directly onto the magic link plugins most auth libraries ship.
This template is part of the 65 React Email templates that come with Wensity Pro. Each one is a single file built from React Email components, with a kit for your brand, and installs with the Wensity CLI or the MCP server.
Run the following command
pnpm dlx wensity@latest emails add ledger/magic-link
npx wensity@latest emails add ledger/magic-link
yarn dlx wensity@latest emails add ledger/magic-link
bunx wensity@latest emails add ledger/magic-link
The email lands in emails/ledger/ next to the style's kit.tsx, where you set your brand, colours and links once. It needs Wensity Pro and npx wensity@latest login.
Render the email to HTML with render() from React Email, then send it with Resend, Nodemailer, AWS SES or any provider. The data that changes per send is a typed prop.
import { render } from "react-email";import Email from "@/emails/ledger/magic-link";const html = await render(<Email {...props} />);