OTP & verification
Designing the OTP Resend Flow: Cooldowns, Channels, and Copy
How to design the "didn't get a code?" experience: resend cooldowns, attempt limits, switching to WhatsApp or voice, helpful copy, and the mistakes that cost conversions.
The resend button is where verification flows quietly lose users. If it appears too early, people tap it while the first code is still on its way and end up with two codes. If it is hidden or locked for too long, they give up. A good resend flow is short, honest, and offers a different route when the first one fails.
The core pattern
- After sending, show where the code went: "Enter the 6-digit code we sent to +20 101 234 5678".
- Show a cooldown: "Resend code in 30s".
- When the cooldown ends, show Resend code, and ideally a second option: Send by WhatsApp or Call me instead.
- Always offer Use a different number.
Choosing the cooldown
30 seconds is a good default for the first resend. Most SMS arrive well within that time, and users rarely feel blocked. For later resends, increase it, for example 30 seconds, then 60, then 2 minutes. Increasing cooldowns protect you against abuse without punishing the user who needed one retry.
Switch channels on retry
If the first SMS did not arrive, a second SMS over the same route often fails in the same way. A different channel is more likely to work:
- WhatsApp, if the user has it. Often faster when SMS routes are congested. See WhatsApp OTP vs SMS OTP.
- Voice call reading the code, useful for landlines or users with SMS problems.
- Email, if you already have a verified address and the action allows it.
Present the alternative as a choice, not a hidden link.
Copy that helps
- "Didn't get it? Codes can take up to a minute." sets expectations.
- "Check that this is the number you signed up with." catches the most common login mistake.
- After resending: "A new code is on its way. The previous code no longer works."
Avoid blaming language ("You entered the wrong number") and avoid technical terms like "OTP" in consumer apps; "code" is clearer.
Handle errors clearly
| Situation | What to show |
|---|---|
| Wrong code | "That code is incorrect. Check it and try again." Clear the input. |
| Expired code | "This code has expired. Request a new one." Offer resend immediately. |
| Too many wrong attempts | "Too many incorrect attempts. Request a new code." |
| Too many resends | "Too many code requests. Wait a few minutes and try again." Show when. |
Mistakes to avoid
- Resend available immediately. Users tap it, the first code arrives, and now it is invalid.
- Keeping the old code valid after a resend, which leaves several codes active.
- Resetting attempt limits on every resend, which lets attackers keep guessing.
- No way to change the number, which strands users who made a typo.
- Silent rate limiting, where the button works but no code is sent.
Measure the resend rate
The share of verifications that needed a resend is a good early warning. If it rises for one country or network, delivery is slowing there. See why OTPs fail in Egypt for a troubleshooting checklist, and OTP best practices for the limits behind the UI.