How to Set Up Passkeys, an Authenticator, and Backup Codes for Gmail
Set up a passkey and an authenticator app, and store your 8-digit backup codes offline. Before you travel, test your passkey and make sure you can reach a backup code without your phone.

1. Create a passkey on a personal device
- Sign in to Gmail, click your profile picture in the upper right, and check the full email address. Open Google Account security settings. You’re changing how you sign in to that Google Account, not how your Gmail app receives mail.
- Under “How you sign in to Google,” open “Passkeys and security keys” and select “Create a passkey.” Confirm with your fingerprint, face, or screen lock. If asked where to save the passkey, choose a credential manager you expect to keep using.
- Don’t create a passkey on a public computer or a device someone else can unlock. Signing out of Gmail doesn’t delete the passkey. If you lose the device or plan to give it to someone else, open security settings on another signed-in device and remove the passkey for the old device.

2. Add an authenticator app and verify the setup
- Return to security settings and open “2-Step Verification.” If it’s off, follow the prompts to turn it on, then select “Authenticator.” If the option is missing from a work or school account, ask your administrator which methods are allowed.
- In your phone’s authenticator app, add an account and use the app’s scanner to scan the QR code on Google’s setup page. If the page is on the same phone, choose manual entry, enter the setup key in the app, and select “Time based.” Don’t share the QR code or setup key, or paste either into an online tool.
- Enter the app’s current 6-digit code on Google’s setup page. Setup is complete only when Google accepts it. If the code is rejected, check that the app entry matches the email address, turn on automatic date and time on your phone, and try the next code. When switching phones, verify a code from the new phone before removing the entry from the old one.

3. Keep a copy of your 8-digit backup codes off your phone
- In “2-Step Verification,” open “Backup codes” and follow the prompts to generate or view them. Each 8-digit code works once as a second verification step. It doesn’t replace your password, and it’s different from the rotating 6-digit code in your authenticator app.
- Print the codes or copy them by hand. Check every digit, including leading zeros. Lock up the paper copy and don’t carry it in the same bag as your phone. If you keep a digital copy, use an encrypted vault you can unlock without that phone. Don’t keep your only copy in the Gmail inbox you may need the code to access.
- At the second verification step, select “Try another way,” then choose the 8-digit backup code option. Cross out each code after use. If a copy is lost or may have been exposed, generate a new set immediately. All unused codes from the old set will stop working.

4. Troubleshoot sign-in while traveling
Before you leave, keep your current session signed in and test your passkey in a separate private browser window. Check that your recovery email can still receive messages. When traveling, use your usual device if possible. Backup methods can help if a code doesn’t arrive, but they don’t guarantee you won’t face a security check.
| Sign-in problem | What to do |
|---|---|
| Text messages aren’t arriving while roaming | Choose your authenticator app. It can generate a 6-digit code even when your phone is offline. |
| Your passkey isn’t available on a new device | If Google offers another method, follow the prompts to sign in with your password and either an authenticator code or a backup code. |
| None of your verification methods are available | Open Google Account recovery on a device you normally use and follow the prompts to verify ownership. Don’t give codes to anyone offering to recover the account for you. |
Before-you-travel checklist: - Test your passkey and confirm that the authenticator entry matches the email address you’ll use. - Make sure you can reach at least one unused backup code if you lose your phone, and check that your recovery contact details are current. - If you need to check terminology, use the 2FA reference. Don’t submit any real setup keys or verification codes.