How to Fix Cannot Enter Microsoft Authentication Code
Question details
The user is unable to input or successfully submit a Microsoft authentication code during the login process.

- Product
- Microsoft Account / Authenticator
- Device & OS
- not provided
- Scenario
- Attempting to verify identity using multifactor authentication (MFA) to log into a Microsoft account.
- Observed behavior
- The authentication code field is unresponsive, the code is continuously rejected, or the page fails to load the input prompt properly.
Before proceeding, check your internet connection stability and ensure you have an alternative verification method (such as a backup email or phone SMS) accessible.
Synchronize Device Time and Clear Browser Cache
Fixes issues where time discrepancies invalidate the time-based code or corrupted browser data blocks the input field.
Time-based one-time passwords (TOTP) rely heavily on exact time synchronization. If your device's clock is even slightly off, the authentication code will be deemed invalid by Microsoft's servers.
Additionally, stale browser cookies can cause the login page scripts to freeze or fail.
Go to your device's settings (e.g., Windows Settings > Time & Language > Date & Time) and toggle on 'Set time automatically'. Allow it to sync.
Open your web browser's settings, navigate to the Privacy or History section, and clear your cache and cookies for all time.
Restart the browser, navigate back to the Microsoft login page, and select the option to request a new authentication code.
Switch Network or Device
Bypasses temporary network restrictions or specific device conflicts preventing the authentication prompt from working.
Contact Your Organization's IT Administrator
Required if you are using a work or school account and your MFA settings need to be reset centrally.
Looking for a Hassle-Free Office Suite? Try WPS Office
While you are locked out of your Microsoft account, you don't have to stop working. WPS Office provides a lightweight, free alternative that lets you edit your documents offline without complex cloud authentication barriers.
- 1. Download the Installer: Visit the official WPS Office website and download the free version for your operating system.
- 2. Install the Software: Run the setup file and follow the quick installation prompts.
- 3. Open Your Documents: Launch WPS Office and directly open your existing .docx, .xlsx, or .pptx files to continue working immediately.

Frequently Asked Questions
Why does Microsoft say my authentication code is incorrect?
This usually happens because the time on your device generating the code is out of sync with Microsoft's servers. Ensure your mobile device or computer is set to update its time and time zone automatically.
What should I do if I changed my phone and lost my authenticator app?
If it is a personal account, you must use a backup verification method (like an alternate email or SMS) to log in, then update your authenticator settings. For a work or school account, you must contact your IT administrator to reset your MFA settings so you can register the new phone.
Can I bypass the Microsoft authentication code?
You cannot entirely bypass MFA if it is mandated by your organization or if you enabled two-step verification. However, you can click 'Sign in another way' on the login screen to choose an alternative method you previously set up, such as a text message or email code.




