MFA & Verification Issues

Fix Invalid Verification Code in Microsoft Authenticator for Salesforce

Emma BrownEmma Brown Oct 9, 2026 870 views

Question details

The user needs to resolve an invalid verification code error in Microsoft Authenticator while setting up multi-factor authentication for a Salesforce account on an Android device.

How to Fix Invalid Verification Code in Microsoft Authenticator for Salesforce
Product
Microsoft Authenticator and Salesforce
Device & OS
Android
Scenario
Setting up Multi-Factor Authentication (MFA) for a Salesforce organization using the Microsoft Authenticator app on a mobile device.
Observed behavior
The Microsoft Authenticator app generates a verification code that Salesforce rejects as invalid during setup on Android, whereas the same setup works perfectly on iOS devices.
Before you start

Ensure you have a stable internet connection and access to your desktop Salesforce portal to generate a new MFA QR code before proceeding.

Solution 1Recommended

Sync Device Time and Reconfigure Authenticator

Time-based authentication codes require your device clock to be perfectly synced. Correcting the device time and scanning a fresh QR code typically resolves the issue.

Microsoft Authenticator uses Time-Based One-Time Passwords (TOTP). If your Android device's clock is even slightly out of sync with the global time server, the generated codes will be rejected by Salesforce as invalid.

1
Enable Automatic Date and Time

Go to your Android Settings, select 'General Management' or 'System', and tap on 'Date and time'. Ensure the toggle for 'Automatic date and time' is turned on so your device syncs with network time.

2
Update Apps and OS

Open the Google Play Store and ensure Microsoft Authenticator is fully updated. Additionally, check your Android settings for any pending system updates and install them.

3
Remove the Existing Salesforce Account

Open the Microsoft Authenticator app, tap the problematic Salesforce account, select the settings (gear) icon in the top right, and choose 'Remove account'.

4
Generate a Fresh QR Code in Salesforce

Log into Salesforce on your desktop browser. Navigate to your personal settings or the MFA enrollment prompt to generate a new QR code. Do not attempt to reuse an old or expired QR code.

5
Re-add the Account

In the Authenticator app, tap the '+' icon to add an account, select 'Other account', and scan the newly generated QR code from your desktop screen.

Sync Device Time and Reconfigure Authenticator
Setup Complete: Your verification codes should now be valid. Enter the newly generated 6-digit code into Salesforce before the 30-second timer expires to complete the setup.
Free Microsoft Office alternative

Boost Your Productivity with WPS Office

While you troubleshoot your Microsoft Authenticator and Salesforce integration, consider switching to WPS Office for your document management needs. It is a highly compatible, lightweight alternative to Microsoft Office that offers a familiar interface without the hefty subscription fees.

  1. 1. Download WPS Office: Visit the official WPS Office website and download the installer for your operating system.
  2. 2. Install the Application: Run the setup file and follow the on-screen instructions to install the software on your device.
  3. 3. Open and Create Documents: Launch WPS Office and instantly open your existing Microsoft Office files or create new documents, spreadsheets, and presentations.
Fully compatible with Microsoft Word, Excel, and PowerPoint formats (.docx, .xlsx, .pptx).Lightweight application that runs smoothly on both desktop and mobile devices.Familiar and intuitive user interface for a seamless transition from Microsoft Office.Advanced PDF tools, cloud integration, and robust document security for your workflow.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Microsoft Authenticator work on iOS but fail on Android for Salesforce?

This discrepancy is most commonly caused by a time desync on the Android device. Time-based One-Time Passwords (TOTP) rely on precise synchronization. While iOS devices may have synced correctly, ensuring 'Automatic date and time' is enabled in Android settings usually fixes the Android failure.

Can I reuse a QR code from a previous Salesforce MFA setup?

No. QR codes generated for MFA enrollment are unique to each session and expire quickly. If you need to re-add your account to Microsoft Authenticator, you must generate a fresh QR code from your Salesforce security settings.

Who should I contact if Microsoft Authenticator keeps failing despite troubleshooting?

If basic troubleshooting fails, you should contact Microsoft Authenticator support directly. Avoid redirecting to Outlook mobile support, as they handle different issues. Additionally, contact your company's Salesforce administrator to request an MFA enrollment reset on their end.