Quick answer: An invalid verification code usually means you typed an old code, the code timed out, or a newer code replaced it. Request one fresh code, wait for it, and type it in within a minute or two. If the code comes from an authenticator app, fix your phone's clock first.
The annoying part is that the app rarely tells you which of these happened. It just says "invalid code" or "incorrect code" and lets you guess. This guide walks through each cause in the order you should check it, so you stop wasting attempts.
Why does my verification code say invalid?
A verification code (also called an OTP, short for one-time password) is a short number an app sends to prove you own a phone number or email. It only works once, and only for a short time. Almost every "invalid code" error comes from one of these causes:
- You used an older code. When you tap "Resend", most services cancel the previous code. Google says this plainly on its help page: if you requested several codes, only the newest one works.
- The code expired. Each app sets its own limit. Some codes die after 5 minutes, others after 30.
- A typing slip. A missing digit, a space copied with the code, or a 0 read as an O.
- The clock on your phone is wrong. This only affects authenticator apps, but it is the top reason their codes fail.
- Wrong account or wrong app. You entered a code meant for another account, or for another service that texted you at the same time.
Fix it in this order
- Stop pressing "Resend". Each new request can cancel the last code. Three quick resends can leave you holding three dead codes while the live one is still on its way.
- Wait for the newest message. Give it two to three minutes. Network delays are common, so an old code can land after you asked for a new one.
- Check the time on each message. Open your SMS inbox or email and use the code with the latest time stamp, not the one on top of the notification list.
- Type it by hand. Autofill and copy-paste sometimes grab the wrong number from the message, such as a reference number or part of a phone number.
- Enter it straight away. Do not leave the app to do something else. Some apps restart the sign-in when you switch away for too long.
- If it still fails, pause. Close the app, wait 10 to 15 minutes, and start the sign-in again from the beginning so you get one clean code.
Authenticator app codes that keep failing
An authenticator app (such as Google Authenticator or Microsoft Authenticator) makes a new six-digit code every 30 seconds. It does this by reading your phone's clock. If your clock is off by even a minute, the code your app shows will not match what the website expects.
Fix the clock first:
- Open your phone's Settings, then Date and time.
- Turn on automatic date and time, and automatic time zone. For Nigeria, the zone should show West Africa Time (WAT).
- Close the authenticator app and open it again, then try the newest code.
On Android, Google Authenticator also has its own fix. According to Google, you open the app, tap More, then Settings, then Time correction for codes, then Sync now. This only changes the app's internal time, not your phone's settings.
Also check that you are reading the code from the right line. If you have several accounts in the app, the codes sit next to each other and are easy to mix up. If you no longer have the app at all, our guide on what to do when you have lost your authenticator app covers the recovery steps.
SMS and email codes: what changes
SMS and email codes fail for slightly different reasons. This table shows where to look first.
| Code type | Most likely cause | First thing to try |
|---|---|---|
| SMS code | Late delivery, so you used an older code | Wait, then use the code with the newest time stamp |
| Email code | Newer email hidden in spam, Promotions or a grouped thread | Search your inbox for the sender and open the latest email |
| Authenticator code | Phone clock is wrong | Turn on automatic time, or use Sync now |
| Backup code | Code already used once | Cross it off and try the next one on your list |
With email, the Gmail app often groups messages from the same sender into one thread. The code you see first may be the oldest one. Scroll to the bottom of the thread.
"Too many attempts" after a wrong code
Most apps limit how many times you can enter a code or ask for a new one. Go past that limit and you get locked out for a while. The wait can be minutes or hours, depending on the app, and it is usually shown on screen.
Here is the mistake people make: they keep trying during the wait, hoping it will reset sooner. It will not, and on some apps it can make the lock last longer. Note the time shown, leave the app alone, and come back after it ends with a single clean attempt. If you are stuck on Telegram, our post on the Telegram too many attempts error explains the wait in detail.
Using a virtual number or temporary email
A virtual number is a temporary phone number you rent online to receive a sign-up code. If the code from a virtual number shows as invalid, the usual causes are the same: an older code, a slow delivery or a typing slip. Two extra points apply:
- One number is usually for one activation. If you ask the app to resend several times, you can end up with codes that are no longer valid. Request once and wait.
- Do not reuse a code from an earlier attempt. If you restarted the sign-up, the app made a new code. The old one is dead.
Some apps also refuse certain types of numbers altogether. That is a different problem from an invalid code, and it usually shows a different error such as "this number cannot be used".
When "invalid code" is a scam warning sign
Sometimes the code is valid, but it is not yours to share. A common trick in Nigeria goes like this: someone messages you on WhatsApp, says they sent a code to your phone "by mistake" and asks you to forward it. That code is the key to your own WhatsApp or bank account.
Two rules keep you safe:
- Never send a verification code to anyone, including someone who says they work for a bank, a network or the app itself. No real support team needs it.
- If you receive a code you did not request, someone may be trying to sign in as you. Do not enter it anywhere. Change your password and turn on two-step verification.
Our guide to the OTP scam in Nigeria shows the common scripts scammers use.
If you need a temporary number or a short-term inbox to receive a sign-up code for your own account, you can get one from the DDBoost dashboard.
Frequently asked questions
How long does a verification code last?
It depends on the app. Some codes expire after 5 minutes, and others last up to 30. Authenticator app codes change every 30 seconds. If you are unsure, assume you have only a few minutes and enter the code as soon as it arrives.
Why does my code say invalid when I typed it correctly?
Most likely a newer code replaced it, or it expired. This happens a lot when you tap "Resend" more than once. Wait for the latest message, check its time stamp, and use only that code. For authenticator apps, a wrong phone clock is the usual cause.
Can I use the same verification code twice?
No. A verification code works once. After you use it, or after it expires, it is dead. If your sign-in failed after you entered it, start again and request a fresh code.
Why does Google Authenticator say wrong code?
The most common reason is that your phone's time is wrong. Turn on automatic date and time in Settings. On Android, you can also open Google Authenticator, go to Settings, then Time correction for codes, and tap Sync now.
Is it safe to share my verification code with customer care?
No. Real customer care never asks for your code. Anyone who asks for it, even if they use a bank's name or the app's logo, is trying to get into your account. Hang up or stop replying.