If your authenticator app is not working, the usual cause is that the one-time code is valid for only about 30 seconds and your phone's clock, the server's clock, or the app's saved secret has drifted out of the accepted window. Authenticator codes are calculated locally from a shared secret and the current time, so a wrong clock or a wrong secret breaks the match even when the app looks fine. Most failures resolve by fixing the phone's automatic time, resyncing in the app, or restoring the account from backup codes.
How TOTP codes actually fail
Most authenticator apps use the time-based one-time password standard, usually called TOTP, defined in RFC 6238. The service and your app share a secret, typically a base32 string encoded in the QR code. Both sides combine that secret with a time counter and run the result through HMAC-based hashing. The counter is the current Unix time divided by a fixed step, almost always 30 seconds. The server accepts codes from the current step and usually one step before and after, a tolerance of about 30 to 90 seconds.
That design explains most failures. A code is not a password stored anywhere; it is computed fresh every 30 seconds from the secret and the clock. If the phone clock is wrong by more than the tolerance, or if the shared secret differs by even one character, every code fails. The app can display six digits with a countdown ring and still be completely out of sync with the server.
Time-based codes are not the only kind. Some services use counter-based codes, where each use increments a counter instead of reading the clock, and push notifications that approve a login without any code. Time-based codes dominate consumer accounts, so clock problems dominate support complaints. A professional caveat: the displayed countdown is cosmetic. It does not prove the code is correct, because the app can render a timer while computing from a secret the server no longer recognizes.
Quantified context: short windows and drift
The numbers matter because they define how little error the system tolerates. Codes change every 30 seconds, so a code typed at the end of one window can expire during submission, especially with slow keyboards or network lag. Many servers accept the previous and next step, giving roughly 90 seconds of usable validity. That is still a tiny window compared with a password, which might stay valid for months.
Clock drift accumulates quietly. A phone that loses network time correction can drift by seconds per day, and some devices drift faster after long uptime or battery-saving periods. Automatic time keeps most phones within a second or two of network time, which is well inside tolerance. A manual clock can be off by minutes, which is far outside it. According to NIST time synchronization guidance, systems relying on time-based authentication need clocks accurate to within the protocol's tolerance. That tolerance is small by design.
A counterintuitive detail: a phone clock that is ahead can fail just as badly as one that is behind. If the phone is one hour fast, the app computes codes for a step the server will not reach for an hour. The code looks valid in the app and is rejected instantly. Users often assume slow is the only risk, so they reset the clock forward and make things worse.
Edge cases and platforms
No wireless signal is a common cause that has nothing to do with clocks. Time-based codes are generated offline, so the app works in airplane mode as long as it has the secret and correct time. But some apps and services add steps that need connectivity, such as checking for revoked tokens or syncing across devices. A cloud-synced authenticator may show an empty vault when offline, which looks like a failure but is a sync limitation.
Phone replacement and cloud restore cause a distinct failure class. Many authenticator backups are encrypted, and restoring to a new phone can require a password or key set during backup setup. A restore without that key yields an empty or partial vault. Platform migrations add friction, and moving accounts between device ecosystems can strand secrets that were only stored locally.
Red flags that indicate something other than clock drift: The service says the code is wrong for every account in the app, suggesting a shared clock or app-level problem. Only one service rejects codes while others work, suggesting a per-account secret or server-side issue. The QR code was scanned but the app shows no new entry, suggesting camera, screen brightness, or permission problems. The phone clock edits itself back after you set it, suggesting a device management profile or automatic time conflict. Backup codes were never saved and the phone is lost, which is a recovery problem, not a sync problem.
Misconceptions that waste time
The most common misconception is that reinstalling the app fixes codes. Reinstalling usually wipes locally stored secrets unless a backup exists, so it converts a sync problem into a lockout. The secret lives in the app's storage, not on the server in a form the app can re-download. Deleting the app is a destructive troubleshooting step, not a neutral one.
Another misconception is that the code is tied to the phone number. Authenticator codes have no relationship to SMS. Changing carriers, swapping SIM cards, or losing cellular service does not affect them. A related error is expecting SMS codes and app codes to match; they come from different systems, and a service may offer one, the other, or both.
A subtle misconception is that a wrong code means a wrong password. The login form may merge both failures into one generic error for security reasons. If the password is correct and the code is rejected, suspect the clock or secret first. A plain-language summary: the app is a calculator, not a mailbox, so nothing arrives by network unless the app is a synced or push-based type.
Practical actions and thresholds
Work from least destructive to most destructive. Set the phone to automatic date and time first, then allow a network connection so it can correct itself. Wait for a fresh code to appear, submit it promptly, and confirm the phone's displayed clock matches a trusted time source within a minute or two. Some apps include a sync or time-correction option that recalculates the offset against a server; use it before anything else.
If clock fixes fail, verify the secret. Remove the account entry and re-add it by scanning the original QR code or entering the setup key exactly. A single wrong character breaks every code, and the setup key is case-insensitive base32 with no spaces. Keep the original setup material until a new code is proven to work.
Thresholds to act on: Clock off by more than 60 seconds: treat as the primary cause and correct automatic time. One account failing while others pass: re-enroll that account's secret. New phone with empty vault: stop and locate the backup password before deleting anything. Locked out with no working code: switch to saved backup codes or the service's account recovery process. No backup codes and no working device: contact the service's support and expect identity verification.
For recovery planning, check whether the service issues backup codes and store them somewhere separate from the phone. A comparison of code types helps set expectations:
| Code type | Needs network | Needs clock | Typical failure cause |
|---|---|---|---|
| Time-based app code | No | Yes | Clock drift, wrong secret |
| Counter-based app code | No | No | Counter desync, accidental extra uses |
| Push approval | Yes | Roughly | Network, stale session, denied prompt |
| SMS code | Yes | No | Carrier delivery, number changes |
| Email code | Yes | No | Spam filtering, wrong inbox |
| Backup codes | No | No | Lost printout, already used |
If a service offers multiple methods, keep at least two active and independent. A time-based app plus printed backup codes covers both phone loss and clock failure. Registering the same account in two authenticator apps on different devices adds redundancy, but only if the service allows multiple enrolled authenticators; many do, and this is the single most effective protection against lockout.
Timeline: what a typical failure looks like
| Stage | Typical time | What happens |
|---|---|---|
| Drift begins | Days to weeks | Phone clock slowly departs from network time |
| First rejection | 30 to 90 seconds per attempt | Codes fail as drift exceeds tolerance |
| Reinstall attempt | Minutes | Local secrets wiped; lockout worsens |
| Backup code login | Minutes | Access restored if codes were saved |
| Re-enrollment | Minutes | New secret bound, codes work again |
| Recovery without backup | Hours to days | Support identity checks required |
The table shows why the reinstall step is dangerous: it happens in minutes and turns a recoverable sync issue into a support ticket. The fastest safe path is always clock correction or backup code use before any destructive change.
Limitations and what this cannot resolve
No article can tell you which specific account is failing or why without access to the device and service logs. The mechanisms above are general, and the exact tolerance window, backup behavior, and recovery policy vary by provider. Some failures are server-side outages, revoked secrets, or account suspensions that no local fix addresses. Treat any advice to delete app data as a last resort, and confirm recovery options before acting.
This article is general educational information about how authenticator apps work, not a diagnosis, security audit, or account-recovery guarantee. Do not rely on it as legal or professional security advice for high-value accounts. For accounts tied to money, health records, or identity, consult the service's official recovery documentation and, where available, a qualified security professional.