If the Microsoft Authenticator app is not working on your iPhone or Android, the fix usually involves checking your phone’s time and date settings, updating the app, or re-syncing your accounts. Below are six concrete fixes you can try right now, followed by deeper context on why the app fails and how to keep your accounts secure.
Why Microsoft Authenticator Fails
The Microsoft Authenticator app generates time-based one-time passcodes (TOTP) or approves sign-ins via push notifications. Both methods depend on a few fragile links:
- Time sync: TOTP codes are only valid for 30 seconds. If your phone’s clock is off by even a minute, the code will be rejected.
- Network connection: Push notifications require an internet connection (Wi-Fi or cellular). If you’re offline, the app may show an error or simply not receive the prompt.
- App version: Outdated versions can have bugs or lose compatibility with Microsoft’s servers.
- Account state: If you’ve recently changed your password or removed a device from your Microsoft account, the app may be out of sync.
Fix 1: Check Your Phone’s Date and Time
The most common cause of “invalid code” errors is incorrect time settings. On both iPhone and Android, the app relies on your device’s clock to generate codes. To fix:
- Go to Settings → General → Date & Time (iPhone) or Settings → System → Date & time (Android).
- Enable Set Automatically (iPhone) or Automatic date & time (Android).
- If it’s already on, toggle it off and on again, then restart the Authenticator app.
If you travel across time zones, the automatic setting should update, but a manual override can sometimes linger. Also, verify the time zone is correct—not just the time.
Fix 2: Update the App
Microsoft regularly releases updates to fix bugs and improve security. An outdated app may have known issues that are already resolved in a newer version.
- iPhone: Open the App Store, tap your profile icon, scroll to see pending updates, and update Microsoft Authenticator.
- Android: Open the Google Play Store, tap the hamburger menu → My apps & games, and update Microsoft Authenticator.
After updating, force-close the app and reopen it. If you’re on an older device that no longer receives updates, you may need to upgrade your phone or use an alternative like a hardware security key.
Fix 3: Re-sync Your Accounts
If you’ve added multiple accounts, one of them might be out of sync. The app has a built-in sync feature that can help:
- Open Microsoft Authenticator.
- Tap your profile icon (top right) or the three-dot menu.
- Select Settings → Account sync (or Cloud backup depending on version).
- Tap Sync or Repair.
This will refresh your account list and re-fetch the latest secrets. If you see a specific account with a warning icon, tap it and choose Repair.
Fix 4: Clear App Cache and Data (Android) or Offload (iPhone)
Corrupted temporary files can cause the app to crash or behave erratically. Clearing them is safe and won’t delete your accounts (as long as you have backup enabled).
- Android: Go to Settings → Apps → Microsoft Authenticator → Storage → Clear Cache. If that doesn’t help, try Clear Data (this will remove accounts, so make sure you have a backup or recovery codes).
- iPhone: Go to Settings → General → iPhone Storage → Microsoft Authenticator → Offload App. This removes the app but keeps its data. Then reinstall from the App Store.
Fix 5: Re-add the Account
If the code is still wrong, the account secret may be corrupted. The only reliable fix is to remove and re-add the account. This requires access to your Microsoft account’s security settings:
- Go to account.microsoft.com/security on a computer or another device.
- Sign in, then go to Security → Advanced security options.
- Find the Authenticator entry and click Remove (or Delete).
- Open the Authenticator app, tap the + icon, choose Work or school account, and scan the QR code that Microsoft shows.
If you don’t have access to your account because the app is the only second factor, use a recovery code (if you saved one) or contact your IT admin (for work accounts).
Fix 6: Reinstall the App
As a last resort, uninstall and reinstall the app. This is more drastic because it will remove all accounts, and you’ll need to re-add them. Before doing this:
- Make sure you have a backup of your accounts (the app can back up to your Microsoft account or iCloud/Google account).
- Have recovery codes or another way to sign in to each service.
After reinstalling, sign in to your Microsoft account and restore from backup if prompted. If you don’t have a backup, you’ll need to re-register each account manually.
Common Misconception: “The App Is Hacked”
A frequent worry is that a failed code means someone else is using your account. In reality, the vast majority of failures are due to time sync or network issues. If you suspect a security breach, check your Microsoft account’s recent activity page for unknown sign-ins. If you see none, it’s almost certainly a technical glitch.
Frequently Asked Questions
Why does my Microsoft Authenticator code keep saying “invalid code”?
This is almost always a time sync problem. Go to your phone’s date & time settings and enable automatic time. If that doesn’t work, manually set the time zone to your current location and restart the app.
Can I use Microsoft Authenticator without an internet connection?
Yes, for TOTP codes. The app generates codes offline using your device’s clock. However, push notifications require an internet connection. If you’re offline, use the code displayed in the app instead of tapping “Approve”.
What happens if I get a new phone?
You need to re-register the app on your new phone. On your old phone, go to the Microsoft account security page and remove the old device. Then add the new phone by scanning a QR code. If you have backup enabled, you can restore your accounts to the new device.
Does Microsoft Authenticator work with Gmail or Facebook?
Yes, the app supports any service that uses standard TOTP (time-based one-time passwords). You can add non-Microsoft accounts by tapping the “+” and choosing “Other account” (or “Google” etc.). The QR code will be provided by that service.
Is Microsoft Authenticator safe to use?
Yes, it’s a widely used authenticator app. It stores secrets encrypted on your device and supports biometric authentication (fingerprint/Face ID) to open the app. It does not store your passwords—only the second-factor codes.
Why does the app ask for a “recovery code” when I reinstall?
If you didn’t enable cloud backup, reinstalling the app wipes all accounts. The recovery code is a one-time code you should have saved when you first set up the app. It allows you to regain access to your Microsoft account if you lose the app. If you don’t have it, you’ll need to verify your identity via email or phone.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Custom Alphanumeric Passcode iPhone: How to Set
- Quick Look Not Working on Mac? Fixes That Work
- How to See Deleted WhatsApp Messages on iPhone
- HomePod Software Update: How to Install
- How to Shuffle Photos in Slideshow on iPhone
- QUIC Protocol Error in Windows 10: Fixes