One-time codes

A code arrives in another app and expires quickly, and copying it across by hand invites mistakes.

Entering a six-digit code. Six separate boxes submit on the last digit, so one typo sends a wrong code and clears them. One field takes the code the phone offers, and nothing is sent until the person presses Verify.

The answer

Use one field that can be pasted into and filled automatically, and do not submit by itself. As strong as the weakest rule behind it: moderate.

The other rules

Accessibility

Open questions

  • OpenNo controlled test of one field against split boxes, of automatic submit, or of resend and expiry wording was found.
  • OpenHow long a code should stay valid: GOV.UK uses 15 minutes; no evidence.
Checked November 12, 2026

Sources