Every page that answers this question opens the same way: your phone clock has drifted, turn on automatic time, try again. For most authenticator apps that is the right first move. For Duo Mobile it may be advice about a mechanism your passcode does not use, because a Duo Mobile passcode is not necessarily a time-based code at all.

That is the thing worth knowing before you change a setting, and it takes four seconds to check. This page starts there, then works through the failures that are specific to Duo: an app holding two completely different kinds of account that restore separately, a lockout counter you cannot see, and a support route that Duo itself tells you not to use. For the general version across any app, 2FA code not working: causes and fixes, in order is the full guide, and Google Authenticator code not working, Microsoft Authenticator code not working and Authy code not working cover the other apps in this family.

The short answer

Look underneath the passcode. If there is a 30 second countdown, the code is time-based and a wrong device clock will break it, so fix the clock in your phone's settings. If there is no countdown, the code is valid until it is used, the clock is irrelevant, and you are looking at a different problem: a code already spent, an account that was reactivated somewhere else, or a lockout.

And if this is a work account, note the ceiling early. Most of what can go wrong with Duo is settled by your organisation's Duo administrator rather than by you.

Look at the countdown before you touch the clock

Two passcode cards, one with a countdown ring and one with a refresh arrow
The countdown is the only visible difference between the two passcode types, and it decides whether the clock matters.

Duo Mobile can generate either of the two one-time password standards, and which one you get is an account setting your organisation holds. Duo's own administration documentation is blunt about the difference: "There are two types of OTP, hash-based message authentication code one-time passcodes (HOTP) and time-based one-time passcodes (TOTP). HOTP codes only expire once they're used. TOTP codes expire once they are used or after 30 seconds" (Duo).

Read the first of those again, because it inverts the standard advice. An HOTP passcode does not expire on a timer. It is computed from a counter rather than from the clock, so a phone that is ten minutes fast produces exactly the same digits it would produce if it were correct. No amount of date and time fiddling will change a refused HOTP code, and every minute spent on it is a minute not spent on the real cause. TOTP and HOTP compared sets out why the two behave so differently.

The user-visible test is the one Duo gives in its own iPhone and Android guides: "You'll see a 30 second countdown indicator underneath the passcode. If you don't use that passcode before it expires then the account refreshes with a new passcode and the countdown begins again", and, for the other kind, "If the account does not show a countdown indicator, then the passcode shown is valid until used. Tap Refresh Passcode to generate a new Duo passcode" (Duo).

Which one your organisation uses depends on something you had no part in. Duo's settings documentation explains that the default was decided by when the organisation signed up: "For customers who signed up before May 2024, the Passcodes setting can be changed and the default setting is 'Do not generate TOTP codes in Duo Mobile'. For customers who signed up after May 2024, the Passcodes setting will not be visible, cannot be changed, and the permanent default is to only accept 'Time-based one-time passcode (TOTP)' Duo Mobile passcodes" (Duo).

There is a second gate on the same page, and it is the one that catches people who never update apps: "Users must be running Duo Mobile 4.49.0 or newer to generate TOTP codes. If a user's device is running Duo Mobile 4.48.0 or older, then Duo Mobile will still generate HOTP codes, regardless of any of the options in this setting" (Duo). So an organisation can switch to time-based codes and a stale app will quietly keep producing the other kind.

When the clock is the problem anyway

If you do see a countdown, the clock is back on the table, and the fix is in the operating system rather than in Duo Mobile. There is no time-correction setting inside the app to find.

  • Android — Settings, System, Date & time, then Set time automatically along with the network-provided time zone.
  • iPhone and iPad — Settings, General, Date & Time, Set Automatically. If it is already on, switch it off and back on to force a fresh fetch.

Duo's own end-user troubleshooting does ask for this, though in the section about push notifications rather than passcodes: "Check the time and date on your phone and make sure they are correct. If the date and time on your phone are manually set, try changing your device's configuration to sync date and time automatically with the network" (Duo).

Worth being precise about how much drift actually matters, because "a few seconds" and "a minute" are different problems: the clock section of the main guide has the numbers, and the clock check compares your device against real time in the browser without sending anything anywhere.

When half your codes work and half do not

One app split into two groups of accounts, each with its own separate restore path
Two kinds of account in one list, and two restore flows that do not cover for each other.

Duo Mobile holds two species of account that look identical in the list. Duo-protected accounts are the ones your employer enrolled, the ones that also receive Duo Push. Third-party accounts are the ones you added yourself by scanning a QR code at Google, Dropbox or Instagram.

They back up separately, and that is why a new phone so often produces a list where some entries work and some do not. Duo says it twice, once from each direction: "This process doesn't reconnect any third-party accounts. You'll still need to provide your third-party account recovery password before you can use those accounts to generate passcodes", and "Note that this doesn't reconnect your Duo-protected accounts. You'll still need to perform the Instant Restore steps before you can use those accounts to log in" (Duo).

They also differ in what happens to the old phone, which is where refused codes come from rather than missing ones. "Restoring or reactivating any Duo-protected and 'Duo Admin' accounts on the new device deactivates those accounts on the old device", while "Restoring any third-party accounts on the new device does not deactivate those accounts on the old device" (Duo). So after a move you can be holding two phones that both show plausible digits for the same service, and only one of them is live.

The same thing happens without a new phone at all. Reactivating Duo Mobile retires whatever came before it: "Regenerating an activation code invalidates an existing activation! This will immediately invalidate any existing Duo Mobile credentials for that device" (Duo). An entry invalidated that way keeps sitting in the list producing well-formed passcodes for ever.

Duo names one specific duplicate too, worth knowing if you use Windows: "Duo for Windows offline access does not reactivate offline access accounts restored to your phone. Reactivation of Windows offline access creates a second offline access account. Delete the restored Windows offline access account from Duo Mobile before reactivating Windows offline access" (Duo).

Moving Duo Mobile to a new phone has the full sequence for both kinds, including the recovery password the third-party backup depends on.

The lockout you cannot see

Retrying is the natural response to a refused code, and with Duo it has a cost that is invisible from the phone. "The user lockout counter increments after each failed authentication attempt (such as push timeout or incorrect passcode entered). The default lockout threshold is ten failed attempts" (Duo).

Ten is the default, your organisation may have set it lower, and a timed-out push counts the same as a wrong passcode. Once it trips, nothing you do on the phone helps: Duo describes Locked Out as a status that "is only visible while an account is locked out, and cannot be manually set by an admin", cleared only when someone "manually change that user's status from 'Locked Out' to 'Active' or 'Bypass'" (Duo).

So the practical rule is to stop at two. If a second correct-looking passcode is refused, the third will be too, and the attempts are spending a budget you cannot check.

One more cause belongs here because it produces refused codes with nothing visibly wrong: a device policy. Duo's policy documentation describes an operating-system rule that "Prevents use of Duo Mobile to approve Duo Push requests or generate usable passcodes to complete two-factor authentication for any Duo-protected application on devices running the restricted OS" (Duo). Duo Mobile version 4 itself needs iOS 17 or Android 12 as a floor (Duo). An old phone can therefore generate passcodes that are arithmetically perfect and institutionally refused.

When no Duo Mobile passcode will ever work

Two routes, and which one applies depends on the kind of account.

  1. For a Duo-protected work account, reactivate. Duo's instruction is "If you get a new phone you'll need to re-activate Duo Mobile. You may enroll your new device yourself using Duo's device management portal if self-service is enabled. Otherwise, ask your administrator to send you a new activation link" (Duo). If you use Duo at more than one organisation, that is one conversation per organisation.
  2. For a third-party account, spend a recovery code at the service. Duo points the same way: "If the application provided recovery codes to you when you enabled two-factor authentication, use a recovery code to log into the application, then visit the security settings where you first set up 2FA to restore Duo Mobile passcode access" (Duo). Where to store your 2FA backup codes covers what to do the moment you spend one, and Lost your phone? How to get your authenticator codes back sets honest expectations per service.

What is not a route is Duo's support desk, and Duo says so itself about third-party accounts: "Duo does not have access to your third-party accounts, account credentials, or recovery codes. Duo Support cannot assist with account recovery or reset your Duo Restore password", followed by "Please do not contact Duo Support" (Duo). The recovery password for that backup is in the same category: "Duo cannot recover this password for you" (Duo).

Where KeyNesta fits, and what it cannot do

KeyNesta cannot set your clock, and it cannot do anything at all about a Duo-protected work account. Duo Push, your employer's enrolment and the policies behind it belong to Duo, and no other authenticator replaces them. If your Duo Mobile is one work account sitting above a dozen personal codes, the personal codes are the ones worth moving.

Moving them is manual, because there is no file to carry: "It is not possible to export third-party accounts from Duo Mobile" (Duo). That is the same position Authy leaves you in, and the honest version is that the import page has nothing for you here. KeyNesta reads Google Authenticator transfer QR codes, unencrypted Aegis and 2FAS exports, generic JSON and CSV, and plain lists of otpauth:// links. Duo Mobile produces none of those. So the route is one service at a time, with Duo Mobile still installed until the last one is verified: sign in, turn two-factor authentication off and straight back on, scan the new QR code into KeyNesta, test a real sign-in, and only then delete the entry from Duo Mobile.

What that buys you is the failure mode above going away rather than being survived again. A KeyNesta entry carries the algorithm, digit count and period the QR actually specified, the vault syncs end to end encrypted so the next phone is a sign-in rather than a restore password, and it runs in a browser as well as on a phone. 2FA backup and sync covers what that costs in plain terms.

What it cannot do is recover anything. Sync is zero-knowledge, so a forgotten passphrase is not a support ticket, in exactly the way a lost Duo recovery password is not. If your secrets are gone, the way back is the account, never the app.

Frequently asked questions

Are Duo Mobile passcodes time based or not?

Either, depending on your organisation. Duo documents both HOTP and TOTP passcodes in Duo Mobile, with the type decided by an account setting rather than by you. Organisations that signed up after May 2024 are permanently on time-based codes; older ones default to the counter-based kind unless an administrator changed it, and an app older than version 4.49.0 generates counter-based codes regardless of the setting.

Why does my Duo Mobile passcode have no countdown underneath it?

Because it is a counter-based passcode, which Duo says is "valid until used" rather than expiring on a timer. That is not a fault, and it means the device clock has no bearing on whether the code is accepted. Tap Refresh Passcode for a fresh one instead of waiting for a cycle that is never coming.

Why is my Duo account locked out after a few wrong codes?

Duo counts failed attempts per user and locks the account at the threshold your organisation set, ten by default, with a timed-out push counting as a failure just like a mistyped passcode. The status cannot be cleared from the phone: an administrator has to set the account back to Active or Bypass.

Can Duo Support fix a refused Duo Mobile passcode?

Not for an account you added yourself. Duo states that it has no access to third-party accounts, credentials or recovery codes, that Duo Support cannot reset the Duo Restore password, and asks users not to contact Duo Support about them. For work accounts the route is your own IT help desk or Duo administrator, not Duo.

Why do some Duo Mobile accounts work on my new phone and others do not?

Because the app backs up two kinds of account through two separate mechanisms. Instant Restore brings back Duo-protected work accounts; third-party codes come back only if their own backup was switched on and you still have the recovery password. Restoring one does nothing for the other, which is exactly what a half-working list looks like.

Takeaway

Check the countdown first. It costs four seconds and it tells you whether the clock is even part of the question, which no generic troubleshooting list can do for you. If there is no countdown, stop adjusting the date and look at whether the passcode was already spent or the account was reactivated somewhere else. If there is one, fix the time in the operating system and move on quickly, because retrying is not free: ten failures by default and the account locks, and only an administrator can unlock it. After that the split that explains most of the rest is the one Duo built in, between the accounts your employer enrolled and the accounts you added yourself.

Sources