Having access to your recovery codes in a secure place will get you back into your account.

Use one of your recovery codes to regain entry into your account. You may have saved these to a password manager, such as LastPass, 1Password, or Keeper.

At the bottom of the 2FA dialog, click Enter a two-factor recovery code to proceed using your code.

2FA recovery code dialog box

You'll be presented with a dialog asking you to enter your 2FA code, which will be generated from your TOTP application.

Further reading