Contents
With two-factor authentication, signing in to your Apple Account (formerly Apple ID) on a new device or browser takes two things: your password and a six-digit verification code. Many people wait for a text that never comes, but Apple's own support page explains that the code is shown first on your trusted devices; a text or phone call to your trusted phone number is the fallback. Once you know where to look, most "no code" problems are quick to solve. Everything below follows Apple's support documents.
Where your code shows up
| Method | Where you see the code | When it's used |
|---|---|---|
| Trusted device | A sign-in notification on another Apple device that's already signed in | First choice whenever you have one nearby |
| Text or phone call | Your trusted phone number | When no trusted device is handy |
| Background verification | Nowhere; no code needed | In some cases your iPhone verifies the trusted number automatically |
Get the code on a trusted device
According to Apple's guide to getting a verification code:
- Sign in to your Apple Account on the new device or browser.
- Look for a sign-in notification on any of your trusted devices.
- Choose Allow to see your verification code.
- Enter the code on the new device to finish signing in.
The notification may show a map of the approximate sign-in location. Apple notes that this is based on the new device's IP address and may reflect the network rather than the exact physical location. If you're the one signing in, you can still choose Allow even if the location looks wrong. Showing codes automatically requires a device that meets the minimum system requirements; an Apple Watch shows codes on watchOS 6 or later.
Get a text or phone call instead
- On the verification code screen, select "Didn't Get a Code?" or "Can't get to your devices?".
- Choose to have the code sent to your trusted phone number.
- Apple sends the code by text message or calls you with it.
- Enter the code to complete sign-in.
If you use Unknown Senders filtering in Messages, look there first. Apple explains how to keep codes from being hidden: open Settings, tap Apps, then Messages, scroll to Unknown Senders, tap Allow Notifications and turn on notifications for Time Sensitive messages. If no app can text you at all, check the line itself; our guide on receiving verification codes abroad covers travel SIM and roaming cases.
Why Apple asks for a code again
Apple's overview of two-factor authentication says that after you sign in on a device for the first time, you won't be asked for a code on that device again unless you sign out of your Apple Account completely, erase the device or need to change your password for security reasons. If you use end-to-end encrypted iCloud content, you may also be asked for the passcode of one of your devices. Two-factor authentication is the default for most accounts, and services such as Apple Pay and Sign in with Apple require it.
No access to your trusted devices or number
Temporarily without them: Apple says the fastest way back in is to wait until you have access again in the next few days, then sign in with two-factor authentication. Once you're in, add more trusted phone numbers for the future.
Permanently without them: you can still try to recover access.
- Try to sign in to your Apple Account.
- Select "Didn't Get a Code?" or "Can't get to your devices?".
- Choose "Can't use [phone number]" and follow the onscreen steps to start account recovery.
Apple warns that account recovery might take a few days or longer, depending on the account information you can provide to verify your identity, and that contacting Apple can't speed it up. That's the strongest argument for setting up a second trusted number before you need it, such as a family member's number or another line you keep.
Codes are for you only
Apple's page on phishing and phony support calls is clear: never share your Apple Account password or verification codes with anyone, and Apple never asks for them to provide support. Apple also says it will never ask you to tap Allow or Accept in a two-factor dialog, enter your code into a website, or turn off security features. If you get a sign-in notification you didn't trigger, don't allow it, and consider changing your password.
Don't use a one-time number as your trusted number
Your trusted phone number is how you'll sign in and recover your account for years, so it has to be a number you keep. A one-time number stops receiving texts after use; if it's your only trusted number, you may be locked out the next time Apple asks for a code. If you only need to verify a number once while creating an account, you can pick a country on our Apple SMS verification page and check costs on the prices page; if no code arrives within 20 minutes, the charge goes back to your balance. Then add your own number as a trusted number right away and remove the temporary one. Two-factor rules on other platforms work differently; see X (Twitter) phone verification.
Frequently asked questions
How many digits is an Apple verification code?
Six. You enter it together with your Apple Account password.
The location on the sign-in notification is wrong. Can I still allow it?
Yes, if you're the one signing in. The location is estimated from the new device's IP address and may not be exact.
Can calling Apple speed up account recovery?
No. Apple says contacting Apple can't speed up the account recovery process.
Will Apple ever ask for my verification code?
No. Apple says it never asks for your password or verification codes to provide support.