SMS OTP Verification: Best Practices for Nigerian Apps
One-time codes are everywhere, and so are the attacks on them. Here is how to design OTP flows that are safe, affordable and friendly on Nigerian networks.

A one-time passcode (OTP) is a short code sent to a phone to prove that the user controls it. It is simple, familiar and good enough for many situations. But it is also a favourite target of fraudsters, and a source of cost and customer frustration when messages are late. This guide covers how to do it well.
IdentifyOrg offers SMS and OTP services and phone verification. This article gives general guidance that applies whichever provider you use.
What OTP proves, and what it does not
An OTP proves that the person entering the code has access to the phone number right now. It does not prove who they are, and it does not protect against someone who has taken over the number. See phone number and SIM verification. Treat OTP as one layer.
Designing the code
- Length. Six digits is a common balance between security and ease.
- Randomness. Generate with a secure random generator, never from a timestamp or user data.
- Expiry. A few minutes. Shorter is safer, but give people enough time on slow networks.
- One use. A code works once and is then invalid.
- Binding. Tie the code to the phone number and the action it was issued for.
- Storage. Store only a hash of the code, not the code itself.
Rate limits and abuse
Attackers love OTP endpoints because every message costs money and guessing is possible.
- Limit requests per number, per device and per IP over time.
- Limit attempts per code, for example five wrong tries and then it is invalidated.
- Add a cooldown before resending, with a visible countdown.
- Detect pumping, where attackers trigger many messages to numbers they control to earn revenue. Watch for unusual destination patterns and sudden volume.
- Add a bot check before sending the first code on public forms.
- Alert on spikes in sends or failures.
Message wording
A clear message helps users and reduces phishing:
Your IdentifyOrg code is 123456. It expires in 5 minutes. Never share this code with anyone.
Include your brand name, the expiry and a warning. Avoid links in OTP messages.
Delivery on Nigerian networks
Delivery can be slow or fail because of network congestion, filtering rules and sender ID registration. To improve reliability:
- Use a registered sender ID where required.
- Offer resend and, after a few failures, an alternative channel such as voice call or a messaging app.
- Track delivery status and show helpful messages: "Code on its way. This can take up to a minute."
- Do not tell users "SMS failed" when the code might still arrive.
- Test on all major networks and in different locations.
Phishing and social engineering
Scammers call victims pretending to be a bank or company and ask them to read out the code they just received. Counter this:
- Put "Never share this code" in every message.
- Tell users in your app and on your website that your staff will never ask for codes.
- Make sure your own support team never asks for them.
- Educate customers. See protecting customers from impersonation scams.
SIM swap and stronger options
For high-risk actions, SMS alone is weak. Consider:
- an in-app approval on a registered device;
- a selfie with liveness for resets or large withdrawals. See face match and liveness;
- delay or extra review after a recent SIM or device change;
- notification to other channels when sensitive changes occur.
Cost control
- Validate the number format before sending.
- Block obviously invalid and high-risk destinations if your service does not need them.
- Cache a verified session so that you do not ask for OTP at every action.
- Do not resend automatically more than once or twice.
- Monitor the cost per verified user.
Privacy
Phone numbers are personal data. Collect them for a clear purpose, tell users, and keep OTP logs only as long as needed. Do not log the codes. See privacy policy vs compliance.
Testing checklist
- [ ] Codes expire and cannot be reused.
- [ ] Wrong attempts are limited.
- [ ] Resend has a cooldown.
- [ ] No code appears in logs or error messages.
- [ ] Error messages do not reveal whether an account exists.
- [ ] Works on slow networks and in all major carriers.
- [ ] Support has a script for "I did not get the code".
A scenario
A ride app sees a surge in OTP costs and customer complaints. Investigation shows attackers requesting codes to numbers they own and repeated resends by impatient users. The team adds a bot check, a resend cooldown with a countdown, a voice fallback after two failures and alerts on abnormal volume. Costs fall and successful verifications rise.
Metrics worth watching
Treat your OTP flow like any other product funnel and measure it. Useful figures include the share of OTP requests that lead to a successful verification, the median time from request to entry, the share of users who request a resend, the delivery rate by network, the cost per verified user and the number of blocked abuse attempts.
Look for patterns. If one network has much lower delivery, test alternative routes or add a voice fallback for it. If many users request a second code, your first message may be arriving too slowly or the screen may be unclear. If costs spike on a particular country code, you may be facing pumping fraud. A weekly review of these numbers takes a few minutes and often saves large sums while improving the experience.
Frequently asked questions
Is WhatsApp OTP better than SMS?
It can be more reliable for some users but has its own considerations. Offer choices.
Should OTP be 4 or 6 digits?
Six is stronger and still easy to type.
Can we skip OTP for returning users?
Use device trust and risk checks for lower-risk actions.
Send codes that arrive and stay safe. Use IdentifyOrg phone verification and SMS for onboarding and login.





Comments
Questions and corrections welcome. Be kind; links are limited to keep spam out.