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.