Sub topic 2
Two-factor authentication and trusted devices
This chapter assumes you know what an Apple Account is and can use System Settings on a Mac. You also need an iPhone, an iPad, or a phone number that can receive texts or calls. Two-factor authentication is the part of setup that most often decides whether sign-in goes smoothly or stalls.
What two-factor authentication does
Two-factor authentication (2FA) requires two things to sign in to your Apple Account: your password and a six-digit verification code. A thief who steals only your password cannot get in, because the code goes to a device or number you control.
Apple Accounts created in recent years have 2FA turned on by default. During Mac setup, you will see the code prompt right after you enter your password on a new device.
Trusted devices and trusted phone numbers
Apple recognizes two kinds of verification channel:
| Channel | What it is | How the code arrives |
|---|---|---|
| Trusted device | An iPhone, iPad or Mac already signed in to your account with a passcode or password set | Pops up on the device's screen, with a map of the sign-in attempt |
| Trusted phone number | A number you registered and verified | Text message or phone call |
A trusted device receives the code as an on-screen prompt. You tap Allow, and the six-digit code appears. A trusted phone number is the fallback when you have no other Apple device nearby. Register at least two numbers, such as your own and a family member's, so one lost phone does not lock you out.
What happens during Mac setup
When you sign in during Setup Assistant, the sequence looks like this:
Once the code is accepted, the Mac is added to your account's device list and becomes a trusted device itself. Later sign-ins on other products can then send codes to it.
Common errors
- Code never arrives. Check that the trusted iPhone is online and unlocked. If not, choose "Didn't get a code?" and pick a text or call to a trusted number.
- Code expires. Codes last a short time. Request a new one and type it promptly instead of reusing an old one.
- Wrong location on the map. The map is approximate and based on the IP address. Deny the request only if you are not the one signing in.
- No access to any trusted channel. You must use account recovery, covered in a later chapter. It can take several days by design.
Check your trusted devices
After setup, review the list on the Mac. Open System Settings, click your name at the top of the sidebar, and scroll to the device list. Each entry should match something you own. To compare against the Mac's own details, run this in Terminal:
system_profiler SPHardwareDataTypeThe output shows the model name, chip and serial number. Remove any device you no longer own or recognize.
Exercise
You are signing in on a new Mac and have no iPhone or iPad nearby. The code prompt appears. What is your best option, and what should you have done beforehand to make it reliable?
Show answer
Choose "Didn't get a code?" and have the code sent by text or call to a trusted phone number. Beforehand, register at least two trusted phone numbers in your Apple Account so that losing one phone does not block sign-in.