Troubleshooting MFA Authenticator Code Entry Issues
Error entering authenticator code for MFA
This troubleshooting article helps resolve issues where time-based one-time passwords (TOTP) from an authenticator app fail during multi-factor authentication (MFA). It covers common root causes such as device time drift, code expiration, and selecting the wrong account entry in the authenticator.
Problem
I receive an error when I attempt to enter the validation code for MFA.
Symptoms
Authenticator code is rejected even when typed correctly.
Codes appear to work sporadically or only after multiple attempts.
The code changes before submission and then fails.
Root Causes
Clock mismatch between your mobile device and your computer/server (time drift).
Expired code due to the 30-second TOTP validity window.
Wrong account selected when multiple accounts exist in the authenticator app.
Solution
Follow these steps in order. After each step, try authenticating again.
Verify device time synchronization
Ensure your mobile device is set to automatic time and time zone (network-provided time). Do the same on your computer.
Confirm the displayed time on both devices matches to the second. Even small drift can break TOTP.
Enter the code within the active window
TOTP codes are valid for approximately 30 seconds. Watch the countdown in your authenticator and submit the code before it reaches 0.
If the timer is near the end, wait for the next code and submit promptly.
Confirm the correct account entry
If you have multiple accounts in your authenticator app, carefully select the account that matches the service you are logging into (check account name, issuer, or email).
Rename entries in your authenticator (if supported) to clearly identify each account.
Resync or refresh the authenticator (if available)
Some authenticator apps allow time correction for codes (e.g., “Time correction for codes” or “Sync now”). Use this to align app time with servers.
As a last resort, re-enroll MFA
If permitted by policy, remove the existing MFA factor and re-scan the QR code or re-enter the secret from the service.
Store backup codes securely and verify successful 2FA before logging out.
Best Practices
Keep automatic time and time zone enabled on all devices.
Avoid copying codes to the clipboard on shared or unmanaged devices.
If possible, enable push-based MFA or hardware security keys for improved reliability.
Escalation and Support
If the issue persists after completing the steps above, capture the following details and contact support:
Screenshot of device time settings (mobile and computer).
Authenticator app name and version, and whether multiple accounts are configured.
Any error messages shown during MFA entry (exact wording).
Related Articles
https://support.google.com/accounts/answer/1066447 — Authenticator app setup and time sync guidance
https://authy.com/help/ — Authy troubleshooting and device time correction