Get a verification code and sign in with two-factor authentication

With two-factor authentication, you’ll need a verification code to sign in with your Apple ID on a new device or browser.

Whenever you sign in with your Apple ID on a new device or browser, you'll confirm your identity with your password plus a six-digit verification code. There are a few ways you can get a verification code. You can use the code displayed on your trusted device, get a text or phone call, or generate a code from your trusted device.

Alert on iPhone

Use the code displayed on your trusted device

If you have a trusted device running iOS 9 and later or OS X El Capitan and later, the verification code is displayed automatically on your trusted devices.

  1. Sign in with your Apple ID and password on a new device or browser.
  2. Look for a sign in notification on any of your trusted devices.
  3. Tap Allow to receive your verification code.
  4. Enter the verification code on your other device to complete sign in.

Notification on iPhone        

Get a text or phone call

If you don’t have a trusted device handy, you can have a verification code sent to your trusted phone number as a text message or phone call.

  1. Click Didn't get a verification code on the sign in screen.
  2. Choose to have the code sent to your trusted phone number.
  3. You'll get a text message or phone call from Apple with your verification code.
  4. Enter the code on your other device to complete sign in.

Password and Security screen

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:

In iOS 10.3 or later:

  1. Go to Settings > [your name].
  2. Tap Password & Security > Get Verification Code.

In iOS 10.2 or earlier:

  1. Go to Settings > iCloud.
  2. Tap your Apple ID username.
  3. If your device is offline, tap Get Verification Code. If your device is online, tap Password & Security > Get Verification Code.

From your Mac:

  1. Go to Apple Menu > System Preferences > iCloud.
  2. Click Account Details.
  3. If your device is offline, click Get Verification Code. If your device is online, click Password & Security > Get Verification Code.

If you still can't sign in

If you can’t sign in, reset your password, or receive verification codes, you can request account recovery to regain access to your account. Account recovery might take a few days or longer, depending on the specific account information you can provide to verify your identity.

Published Date: