How To Set Up Verification Codes In Apple Passwords (2026)
The Passwords app on an iPhone or Mac can generate the six-digit codes that websites ask for during two-step sign-in.
That means you can skip a separate authenticator app and skip text messages for the sites you choose.
Below are the exact steps for the QR code and setup key methods, how to use the code, and the one setting that decides whether codes are kept.
Quick answer: set up a verification code in Passwords
| Where | What to do |
|---|---|
| iPhone, QR code | Scan the website’s QR code with the Camera, then pick the account for that site or app. |
| iPhone, setup key | Passwords > All > your account > Edit > Set Up Code > Use Setup Key. |
| Mac, setup key | Passwords > select the account > Edit > Set Up Code > paste the key > Use Setup Key. |
| Use the code | Tap or click the suggestion above the keyboard when the site asks for a code. |
What you need before you start
Apple says the verification code features in Passwords begin with iOS 18, iPadOS 18, macOS Sequoia and visionOS 2.
Apple also recommends updating every Apple device you use to the latest software version.
The website or app you are protecting must offer two-factor authentication with an authenticator app option.
The iPhone steps start from the All list in Passwords, where your account for the site or app is listed.
Set up with a QR code on iPhone
This is the quickest route when you are signing in to the site on a computer or an iPad.
- On the other device, sign in to the website or app and turn on two-factor authentication.
- Choose the authenticator app option so the site shows a QR code.
- On your iPhone, point the Camera at the QR code and scan it.
- On the iPhone, select your account for that website or app.
- Read the code that appears below the User Name and Password fields.
- Type that code into the site on the other device to finish.
Set up with a setup key on iPhone
Use this method when the site only gives you a text key, or when the QR code is on the same phone.
- On the site, turn on two-factor authentication and choose the option to enter a setup key.
- Select and copy the setup key.
- Open the Passwords app and tap All, then tap your account for the site.
- Tap Edit, then tap Set Up Code.
- Enter or paste the setup key and tap Use Setup Key.
If the site shows a QR code on the iPhone itself, touch and hold the code and choose Add Verification to do the same job automatically.
Set up a verification code on a Mac
The Mac steps in Apple’s guide use the setup key method.
- On the website or app, turn on two-factor authentication and choose the manual setup option.
- Copy the setup key.
- Open the Passwords app on your Mac and select the account.
- Click Edit, then click Set Up Code.
- Paste the key into the Setup Key field and click Use Setup Key.
- Click the verification code to copy it, then paste it into the site to confirm setup.
Use the code when you sign in
Sign in to the website or app, and choose the authenticator app option if the site asks which method you want.
When the site asks for a verification code, tap the suggestion above the keyboard on iPhone, or click it on a Mac.
Apple says the code is filled in automatically, so you do not have to leave the site or app you are signing in to.
If no suggestion appears
Open the Passwords app and select the account for that website or app.
Copy the verification code from the account entry, return to the site and paste it into the code field.
Choose whether codes are deleted after use
On iPhone, open Settings, tap General, then tap Autofill & Passwords.
Under Verification Codes, turn Delete After Use on or off.
That switch controls whether a code is deleted after Autofill enters it.
Which setup method to pick
| Your situation | Best method |
|---|---|
| Site open on a computer, iPhone in your hand | Scan the QR code with the iPhone Camera. |
| Site open on the same iPhone | Copy the setup key, or touch and hold the QR code and choose Add Verification. |
| Setting up on a Mac | Copy the setup key and paste it into the Setup Key field. |
| Site shows no QR code at all | Choose the manual option on the site to get a setup key. |
Common problems and what to check
| Problem | What to check |
|---|---|
| No Set Up Code option | Update to iOS 18, iPadOS 18 or macOS Sequoia or later, since Apple lists those as the starting versions. |
| No suggestion above the keyboard | Copy the code from the account in Passwords and paste it into the site. |
| Code is gone after you used it | Check the Delete After Use switch under Settings > General > Autofill & Passwords. |
Keep a way back in
Before you rely on one device for codes, make sure the site still offers backup codes or another recovery option.
Our guide to Google backup codes shows how that works for a Google account.
If your Apple Account itself is the problem, see Apple Account verification code not arriving.
Related Apple password guides
Passkeys are the other sign-in method stored in the same app, covered in how to create or delete a passkey on iPhone or Mac.
If saved logins do not match across devices, read iCloud Keychain or Passwords not syncing.
To share logins with family, see how to share passwords in the Apple Passwords app.
Official sources
Apple Support: Automatically fill in one-time verification codes on iPhone