What is a backup code?
It's a code you generate ahead of time and keep somewhere else. If your phone is lost, broken or replaced, you use the backup code in place of the usual second step.
Google's help page says to create backup codes in case you lose your phone, change your phone number, or can't get codes the usual way.1
Other apps have their own versions, with their own names. Google's rules below are an example, not a rule for every app.
How do backup codes behave?
Google's page spells out the rules for its accounts:
- Each code works once. After you use a backup code to sign in, that code becomes inactive.1
- You can get a new set of 10 backup codes whenever you want.1
- A new set makes the old set inactive on its own.1
- You shouldn't share them. Google says it never asks for a backup code other than at sign in.1
Two-step verification must already be on for backup codes to be usable.1
How do I actually use one?
Google's steps for a Google account run like this. Find your codes, sign in, and click "Try another way." Then choose the option to enter one of your 8-digit backup codes, and type an unused one.1
Google adds a tip: since each code works only once, you might want to mark it as used.1
Where do I keep them?
Somewhere that isn't the phone. Google suggests storing them somewhere safe, like where you keep your passport or other important documents, and says you can print a copy.1
A codes file kept only on the lost phone can't help you. Pick the place before you need it.
What if I've lost both the phone and the codes?
Then it's an admin's problem, which is why a team needs a plan.
In Google Workspace's security-key-only mode, users can't make their own backup codes. An admin must provide them.2
In that mode the admin also sets a grace period. It lets users sign in with a backup verification code that the admin generates, which is useful when a user loses a security key.2
Different apps handle recovery differently. Your app's help pages will say what yours does, so read them while everything still works, not after you're locked out.
What should I do right after I get back in?
Set up the second step on the new phone, then make a fresh set of codes. With Google, a new set cancels the old one.1
For how the code apps themselves work, read authenticator app codes. Admins weighing lockout settings can look at the admin choices for a small team, which cover enforcement dates and grace periods.
Sources used
- Sign in with backup codes, Google Account Help
- Deploy 2-Step Verification, Google Workspace Help