If you can't get your sign-in code, one of the recovery codes you saved gets you in.
Steps
Sign in as usual
Enter your email and password, and click Sign in.
Click "Use a recovery code"
When we ask for your code, click Use a recovery code at the bottom of the page.
Type one of your codes
Enter one of the codes you saved when you set up two-step sign-in, like XXXX-XXXX, and click Sign in. Each code works once.
Set up your new phone
In Settings › Sign-in and security, click Change method. Then click New recovery codes and save the new ones.
If something goes wrong
The recovery code isn't accepted. Type it exactly as saved, with the dash. Each code works once, so try another one.
