Apple Passwords verification codes let the Passwords app on your Mac generate the one-time code a website asks for after your password. To set one up, copy the site’s set-up key, open the account in Passwords, click Edit, then Set Up Code, and paste the key. The site must offer two-factor authentication with an authenticator app. Apple’s guide describes the manual set-up key method.
This guide follows Apple’s Passwords User Guide for Mac, read on 2 December 2026.
What you need
Apple’s guide lists two requirements:
- A Mac with the Passwords app. The guide covers macOS Sequoia 15, macOS Tahoe 26 and macOS 27.
- A website or app that offers two-factor authentication with an authenticator app option.
Apple says passwords are the first authentication factor and that one-time codes are commonly the second. If you are choosing between code types, our guide to authenticator apps and SMS codes compares them.
Set up a verification code on Mac
Apple gives these steps:
- Sign in to the area of the website or app where you manage your account, and turn on two-factor authentication with an authenticator app.
- Choose the option to use a set-up key manually (the site may call it a set-up code or something similar), then select and copy the key.
- Open the Passwords app on your Mac.
- Select the website or app account.
- Click Edit, then click Set Up Code.
- Paste the key into Set-up Key.
- Click Use Set-up Key.
- Click the Verification Code to copy it.
- Return to the website or app and paste the code where it asks for one.
Apple’s page describes only this manual set-up key method. It does not mention scanning a QR code, so if a site shows only a QR code, look for a link to show the set-up key in text.
Use a code when you sign in
Once the code is set up, Apple says to:
- Sign in to the website or app.
- If prompted, choose the option to use an authenticator app.
- When the site asks for a code, click the suggestion that appears above the keyboard. If no suggestion appears, open Passwords, select the account and click the verification code to copy it, then paste it into the field.
One thing to weigh
Apple’s guide gives no security warning, but the arrangement is worth thinking about. A code stored in the same app as the password means one place holds both factors for that account. That is convenient, and it also means the lock on your Mac and the security of your Apple Account matter more. Many people keep the code in a separate authenticator app or a security key for their most important accounts, such as email.
If you want to move to passkeys where a site supports them, see our guide to setting up passkeys. For sharing logins with family, see Apple Passwords shared groups.





