two factor authentication not working

Two factor authentication isn't working on my iPhone that's also my trusted phone number: I try to login with my Apple ID, then it asks for the code. After that a pop up comes with the code - everything normal until here. I then close the pop-up and insert the code and it tells me that it is the wrong one. I've tried to do this multiple times for weeks now and I am sure I'm putting the correct code in...

iPhone XS, iOS 14

Posted on Jul 24, 2022 11:35 AM

Reply
Question marked as Top-ranking reply

Posted on Jul 25, 2022 11:24 AM

Hi me1285,


Are you attempting to enter this code on your iPhone itself or a different device? For some devices, you may need to enter the code into the password field directly after your password. See below:


What if I use two-factor authentication on a device running older software?

If you use two-factor authentication with devices running older OS versions—like an Apple TV (2nd or 3rd generation)—you might be asked to add your six-digit verification code to the end of your password when signing in. Get your verification code from a trusted device running iOS 9 and later or OS X El Capitan and later, or have it sent to your trusted phone number. Then type your password followed by the six-digit verification code directly into the password field.


If that is not the case, do you have access to another trusted device running the latest version of either iOS or macOS? If so, you can generate a code from that device as well.


Get a code from Settings on your trusted device

If you can’t receive a verification code on your trusted devices automatically, you can get one from Settings, even if your device is offline.

From your iPhone, iPad, or iPod touch

If your device is online:

  1. Go to Settings > [your name].
  2. Tap Password & Security > Get Verification Code.
  3. iPhone screen showing how to get a verification code from Settings.

If your device is offline:

  1. Go to Settings > [your name].
  2. Tap Password & Security. 
  3. A message says "Account Details Unavailable." Tap Get Verification Code.

From your Mac

  1. Go to Apple menu  > System Preferences, then click Apple ID.
  2. Click Password & Security > Get Verification Code.
  3. How to get a verification code on a Mac from System Preferences.


Let us know if the issue persists.


Cheers!



1 reply
Question marked as Top-ranking reply

Jul 25, 2022 11:24 AM in response to me1285

Hi me1285,


Are you attempting to enter this code on your iPhone itself or a different device? For some devices, you may need to enter the code into the password field directly after your password. See below:


What if I use two-factor authentication on a device running older software?

If you use two-factor authentication with devices running older OS versions—like an Apple TV (2nd or 3rd generation)—you might be asked to add your six-digit verification code to the end of your password when signing in. Get your verification code from a trusted device running iOS 9 and later or OS X El Capitan and later, or have it sent to your trusted phone number. Then type your password followed by the six-digit verification code directly into the password field.


If that is not the case, do you have access to another trusted device running the latest version of either iOS or macOS? If so, you can generate a code from that device as well.


Get a code from Settings on your trusted device

If you can’t receive a verification code on your trusted devices automatically, you can get one from Settings, even if your device is offline.

From your iPhone, iPad, or iPod touch

If your device is online:

  1. Go to Settings > [your name].
  2. Tap Password & Security > Get Verification Code.
  3. iPhone screen showing how to get a verification code from Settings.

If your device is offline:

  1. Go to Settings > [your name].
  2. Tap Password & Security. 
  3. A message says "Account Details Unavailable." Tap Get Verification Code.

From your Mac

  1. Go to Apple menu  > System Preferences, then click Apple ID.
  2. Click Password & Security > Get Verification Code.
  3. How to get a verification code on a Mac from System Preferences.


Let us know if the issue persists.


Cheers!



This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

two factor authentication not working

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.