The standard advice for a refused authenticator code is to fix the device clock, and plenty of pages go further and tell 2FAS users to open Settings and tap a time-correction option. That menu does not exist in 2FAS. It belongs to a different app, and repeating the instruction sends people looking for a screen they will never find.
What 2FAS actually does is more interesting, and it changes the order you should troubleshoot in. The app synchronises time itself, over the network, without asking. This page starts with what that means when it works and when it does not, then follows the vendor's own order through the causes that remain. For the general version across any app, 2FA code not working: causes and fixes, in order is the full guide.
The short answer
Work through 2FAS's own list in its own order: update the app, look in Trash for the token you think is missing, get the phone online so 2FAS can synchronise time, and only then suspect the secret itself.
The clock sits third rather than first because 2FAS corrects for a skewed device clock on its own. It can only do that with a network connection, which is the one condition worth checking deliberately.
2FAS corrects its own clock, when it can reach the network
2FAS's own troubleshooting article is unusually explicit about this: "Despite our app working offline, it requires a correctly synchronized time to work. If your device doesn't use internet settings to set the time, make sure that you are connected to the internet for time synchronization via 2FAS Auth, and then try retyping the code" (2FAS).
The phrase worth noticing is "time synchronization via 2FAS Auth". The app does not just read the operating system clock. On both platforms it queries a public network time source, stores the difference between that and the device clock, and adds the difference when it generates a code. So a phone whose clock is a minute fast can still produce correct codes, provided 2FAS has managed a successful time check.
That also tells you exactly when the correction is unavailable: when the app has had no network since the clock drifted. A phone that has been in aeroplane mode for a week, a tablet with no SIM, a device whose network permissions were tightened. In those cases 2FAS falls back to the clock it is given, and the ordinary fix applies.
- Android — Settings, System, Date & time, then Set time automatically with the network-provided time zone.
- iPhone and iPad — Settings, General, Date & Time, Set Automatically, switched off and on again if it is already enabled.
There is no setting inside 2FAS to find, no sync-now button and no warning when the clock is wrong. The correction is automatic and silent, which is pleasant when it works and confusing when it does not. Do authenticator apps need internet? is the longer version of why an offline app still cares about the network, and the clock check compares your device against real time in the browser.
Why Trash comes before the secret
The second item on the vendor's list is the one nobody expects: "Make sure that you didn't delete a code/token assigned to the service – you can do it by looking into your Trash. If you did delete this code/token, just restore it and try again" (2FAS).
Deleted tokens are recoverable in 2FAS, which is a genuinely good design and the reason this check is worth the ten seconds: "Simply go to Settings, then Trash and all the deleted codes will be there. Now tap on three dots on the right of the code and tap Restore" (2FAS).
There is a related failure that puts tokens there without you doing anything, and 2FAS ships a message for it: "The last iCloud sync has moved all your services to the Trash. You can restore them at any time." If a list emptied itself, that is the first place to look rather than the backup.
The same support page covers the other half of the problem, which is having too many entries rather than too few. When a service has been enrolled more than once, the advice is to test rather than guess: "While logging into your service's account, try different codes and save only the one that works, deleting the others. Don't worry – deleting one code won't delete all the others" (2FAS). 2FAS does try to stop this happening, with a warning when a scanned secret is already in the app, but the warning can be dismissed.
One more cause of valid-looking-but-refused digits is the convenience feature. 2FAS describes it as: "2FAS Auth addresses this by enabling a peek at the next code with 5 seconds remaining on the current code's timer", and "the new code only becomes active after the last 5 seconds of the current code" (2FAS). Copy the preview too early and the service will refuse it, correctly.
The QR code 2FAS will not accept
Most authenticators accept whatever a QR code asks for and generate accordingly. 2FAS takes a stricter line, and it is worth knowing because the symptom is unusual.
2FAS supports a fixed set of values: SHA-1, SHA-256 and SHA-512 among the hash algorithms, five to eight digits, and refresh periods of ten, thirty, sixty or ninety seconds. Anything outside that set is not quietly coerced to a default. The code is rejected at the point of scanning, with the message "This QR code is incorrect or not supported. Try again."
So if a service issues a forty-five second or fifteen second period, or a nine-digit code, 2FAS will not hold that account at all. The failure appears at setup as a scan that will not take, rather than later as a code that will not work. If you have ever abandoned adding a service to 2FAS because the QR "would not scan" and assumed the camera was at fault, this may be why.
The flip side is that seven- and eight-digit accounts and SHA-256 accounts do work here, which is not true of every app. And since the fields are editable, they are also a cause: 2FAS says so itself, in the app, under the advanced settings, warning that "Changing advanced settings is not recommended. Do so only when your 2FA provider requires it and when you have clear instructions." If codes for one service have never worked, check those three values against what the service specified before anything else.
When it is the browser extension being refused
The 2FAS browser extension does not hold your secrets. It asks your phone for a code, which means a refused code in the browser can be a pairing problem rather than a code problem. The extension has to be paired with the app, and 2FAS supports several devices and browsers in any combination.
The case worth naming is two accounts at one service. 2FAS lets a token be linked to a domain so it answers automatically, and if the wrong one was linked, the extension will confidently supply the wrong account's code. The fix is to unlink: "long-press a token, select 'Edit', then go to the 'Browser Extension' section, choose 'Domains', and delete all linked domains", and when the prompt comes back, "ensure the 'Save my choice' option is not enabled" (2FAS).
When no 2FAS code will ever work
2FAS is blunt about the limits of its own help, and the honesty is useful: "Regardless of whether you've uninstalled 2FAS Auth, lost your phone, reset your phone, or deleted your tokens, unfortunately, we cannot restore your codes. 2FAS Auth works offline, and codes are stored locally (only on your device)" (2FAS).
Their order from there is the right one:
- Use the backup codes the service gave you when you turned two-factor authentication on. Where to store your 2FA backup codes covers what to do the moment you spend one.
- Re-add the account manually if you still have the secret key itself, which 2FAS notes can be read out of the app's own edit screen behind the eye icon while you still have access.
- Contact the service, not 2FAS: "If you don't have the backup codes, contact your service's Support Team (e.g. Facebook, Discord). They will either disable 2FA on your account or enable an alternative authentication method" (2FAS). Lost your phone? How to get your authenticator codes back sets expectations per service.
If you had a cloud backup, the route is to turn synchronisation back on with the same Apple or Google account. The thing that stops people is the separate backup password, and 2FAS does not soften it: "It is essential that you remember this password, as you cannot restore the cloud backup without it", and if it is forgotten, the only path is to delete that backup and make a new one (2FAS).
Where KeyNesta fits, and what it cannot do
KeyNesta does not correct the clock the way 2FAS does. It reads the device clock, so for a KeyNesta user a wrong clock really is the first thing to check, in the operating system. That is a deliberate trade rather than an oversight: a correction fetched from the network is a correction that depends on reaching the network, and it is one more thing the app talks to.
What it does differently is hold whatever a service issues. The parameter set 2FAS enforces is narrow enough to refuse real accounts at the scanning stage, and a KeyNesta entry carries the algorithm, digit count and period the QR actually specified, including the periods 2FAS will not take.
Moving across is one of the easy ones in this family. The import page reads 2FAS JSON exports directly, provided the export is not password-protected, and issuer, account name, secret, algorithm, digits, period and counters all carry over. Import from Aegis and 2FAS walks through it, and moving 2FAS to a new phone covers the same file when the destination is another 2FAS install. Export without a password only on a device you trust, import it at once, then delete the file: it holds every one of your secrets in the clear.
What KeyNesta cannot do is recover anything, for exactly the reason 2FAS cannot. Sync is zero-knowledge, the server holds ciphertext and no key that opens it, and a forgotten passphrase is the same dead end a forgotten 2FAS backup password is. What zero-knowledge costs you is the honest version of that trade.
Frequently asked questions
Does 2FAS have a time correction setting?
No. There is no such screen in 2FAS, and advice telling you to find one is describing a different app. 2FAS synchronises time by itself over the network and applies the difference when generating codes, with no setting and no warning. The only clock you can adjust is the operating system's.
Why does 2FAS say this QR code is incorrect or not supported?
Because the code asks for a configuration 2FAS does not accept. The app supports five to eight digits, periods of ten, thirty, sixty or ninety seconds, and a fixed set of hash algorithms, and it refuses anything outside that rather than coercing it to a default. The account cannot be added until the service offers a standard configuration.
Where do deleted 2FAS tokens go?
Into Trash, which is the second item on the vendor's own troubleshooting list and the first place to look when a service has no entry. Settings, then Trash, then restore from the three-dot menu. An iCloud sync can also move services there on its own, and 2FAS shows a message saying so when it happens.
Can 2FAS send me my codes if I lose my phone?
No. 2FAS states that it cannot restore your codes under any circumstances, because they are stored locally on the device rather than on their servers. The route back is the backup codes the service issued, a cloud backup whose password you still have, or the service's own support team.
Why does the 2FAS browser extension send the wrong account's code?
Because a token has been linked to that domain and now answers for it automatically. Edit the token, open its Browser Extension section, delete the linked domains, and leave the save-my-choice option unticked next time the prompt appears so you can choose the right account each time.
Takeaway
Follow the vendor's order rather than the internet's. Update the app, look in Trash, then get the device online so 2FAS can do the time correction it does silently and by itself, and only then start suspecting the secret. The failure this app produces that others do not is a QR code refused at the scanning stage, because its supported set of digits, periods and algorithms is narrower than the standard allows, so an account that would not add is a different problem from a code that will not work. And whichever one you are in, back up before you delete anything, because 2FAS can restore from its own Trash but never from its servers.
Sources
- 2FAS, My token code does not work. What should I do?
- 2FAS, I have added many tokens to one service. Which one is correct?
- 2FAS, What is the next token feature?
- 2FAS, I have lost all of my tokens
- 2FAS, What happens if I have two accounts on one domain?
- 2FAS, Can I access my Google Drive backup file if I do not remember the password?
- RFC 6238, TOTP: Time-Based One-Time Password Algorithm