Two-factor authentication not working: how to get past the second step

Two-factor problems almost always come down to a wrong phone clock, an old or mismatched code, or a text message that never arrived. Set the date and time to automatic, enter only the newest code for the right account, and if that fails, use a backup code or another sign-in method. If the phone is lost, use the service's official account recovery.

Applies to:Google Account 2-Step VerificationApple Account two-factor authenticationiOS, macOSGoogle AuthenticatorAndroid, iOSAuthenticator apps (TOTP) and SMS codes
On this page

What it means

Two-factor authentication asks for something beyond your password: a code from an authenticator app, a text or voice message, a prompt on a trusted device, a backup code or a security key. When it fails, your password is usually fine. The account is simply stopped at the second step, either because the code is rejected or because it never shows up.

The right fix depends on which kind of second step you use and which service you are signing in to. This page covers the common causes and the fixes that apply across Google, Apple and other services. Recovery after losing a phone is handled by each vendor, and I have pointed to their official pages for that.

Never give a verification code to anyone who contacts you, even if they claim to be from the service. Real support does not ask for it.

Symptoms and causes

You are likely dealing with this problem if:

  • A "wrong code" or "invalid code" message, even though you just read the code from the app.
  • A text or voice code never arrives, or arrives very late.
  • No sign-in prompt appears on your trusted device.
  • A passkey is not offered at sign-in.
  • An app that used to work with the account stops after you turned on two-factor.
  • The phone was lost or replaced and you have no second factor left.

The usual causes, most common first:

Wrong clock on the phone
Authenticator codes are time-based, so a phone whose date, time or time zone is off produces codes the server rejects.
Expired or replaced code
Codes last a short time. If you asked for several, Google says only the newest one works.
Code from the wrong entry or account
The code may belong to a different service or account, or the authenticator app may be signed into a different Google Account, so codes are not synced.
Text message delivery problems
Carrier delays, weak signal, a plan that does not support texts, an outdated number on the account, or an unusual sign-in location can all stop a code. On iPhone, Apple codes can land in the Messages Unknown Senders folder. A Google Voice number used as the second step sends codes to the very account you are locked out of.
Passkey requirements not met
Google notes that a passkey needs a screen lock enabled on the device holding it.
Lost or changed phone, number or backup codes
With no device, number or backup code that the account recognises, there is nothing left to approve the sign-in.
Work or school account
An administrator decides which second-step methods are allowed, so you may not be able to change them yourself.
Older apps without two-factor support
Some apps cannot handle the second step and need to be signed in again, or need an App Password (Google).

How to fix it

Work through these in order. They start with the quickest, safest checks and move to deeper repairs; stop as soon as the problem is gone.

1.Set the phone clock to automatic

Easy

Time-based codes only match when the phone's clock is accurate. Google Authenticator version 7.0 and later uses the device's time setting, so fixing the device clock is the fix.

  1. On Android, open the date and time settings and turn on the automatic option. Menu names vary by manufacturer. Check that the time zone is correct too.
  2. On iPhone, open the date and time settings and turn on the automatic option (Set Automatically).
  3. Open the authenticator app again and sign in with the next code it shows.

2.Use the newest code for the right account

Easy

Old codes and codes from the wrong entry are the simplest reason for a rejection.

  1. Wait for the code in the app to refresh, then type it in before it changes again.
  2. Check the entry name in the app matches the service and the account you are signing in to.
  3. For Google, confirm the Authenticator app is signed in to the same Google Account you are trying to open. If you requested several codes, use only the most recent.

3.Get text or voice codes to arrive

Easy

Delivery delays and filtering are common and usually clear with patience or a small setting change.

  1. Wait up to 10 minutes (Stripe's guidance for its text codes), then request one new code and use only that one.
  2. Check you have signal or a working connection, and that your plan supports text messages. Restart the phone and try again.
  3. On iPhone, open Messages and look in the Unknown Senders folder for the Apple code. Allow notifications for Unknown Senders and turn on Time Sensitive notifications so future codes are not missed.
  4. On the Apple code screen, tap Didn't Get a Code? and choose a trusted phone number.
  5. If your number changed, update it on the account once you are in. If you are away from your usual location, a text code may be blocked, so try another method.

4.Use another second step or a backup code

Easy

If one method fails, a different one may still work and get you in.

  1. On the Google sign-in screen, choose Try another way and pick any method you still have.
  2. If you saved backup codes, enter an 8-digit code. Each one works only once.
  3. Once signed in, open 2-Step Verification in your Google Account and go to the backup codes page. Choose Get backup codes to create a set, or Refresh if you are running low or lost the old set. You can Download codes or Print codes and keep them somewhere safe. Read the page's wording to see whether the old set stops working after a refresh.
  4. If you ticked "Don't ask again" on a device earlier, try signing in from that device first, then go to account recovery from there.

5.Set up the authenticator again

ModerateChanges settings

If codes keep failing with a correct clock, the app entry may be out of step with the account. Registering it again creates a fresh link.

Before you start: Do this only while you are still signed in or have another way in. Remove an old entry only after the new one is confirmed working, because removing it first can lock you out. Keep a backup code at hand.

  1. For Google, open 2-Step Verification in your account and choose Set up authenticator. Google says the new method can take up to 7 days to appear as a sign-in option.
  2. For other services, open the service's security settings and follow its own help page for setting up an authenticator app again. Confirm that the new entry produces a code the service accepts before you delete the old one.
  3. Add a second method (another authenticator, a backup code or a security key) so one failure does not block you again.

6.Recover the account after losing the phone

Moderate

Without a working second factor, only the vendor's recovery process can verify you.

  1. Google: from another device, sign out of the lost phone and change your password, then verify with another signed-in phone, another number, a backup code, a security key or a passkey.
  2. If none of that works, use Google's account recovery. Recovery involving a lost security key can take 3 to 5 business days.
  3. Apple: on the code screen choose Can't use [number] to start account recovery. It can take days or longer, and contacting Apple does not make it faster.
  4. Use only the official sign-in and recovery pages listed in the sources. Ignore anyone offering to recover the account for you.

7.Ask the administrator for work or school accounts

Easy

The organisation controls which methods are allowed and can usually reset them.

  1. Contact your IT administrator and tell them which second step is failing.
  2. Ask whether your registered methods need to be reset or a new one added.

Check that it worked

  • You sign in with your password and the second step is accepted on the first try.
  • A new code or prompt arrives within a minute or two.
  • You have at least two working second-step methods, such as an authenticator and unused backup codes.

If it still fails

  • Check you are using the official sign-in page for the service, and read its two-step help page for your account type.
  • If the account is Google or Apple and you cannot pass the second step, start the official account recovery and be ready to wait, because it can take days.
  • If it is a work or school account, only your administrator can change the methods.

Questions

Why does my Authenticator app have no time correction setting?

Google removed it in Google Authenticator version 7.0, which now uses the device's time setting. Older guides that mention it are outdated for that app.

Is it safe to read my code to someone who calls me?

No. Verification codes are for you to type into the sign-in page yourself. A message or caller asking for one is a scam.

Sources

  1. Fix common issues with 2-Step VerificationOfficial · Google Account Help
  2. Get a verification code and sign in with two-factor authenticationOfficial · Apple Support
  3. Google Authenticator helpOfficial · Google Account Help
  4. Backup codes for 2-Step VerificationOfficial · Google Account Help
  5. Two-step authentication text message (SMS) verification code not workingOfficial · Stripe Support