How long is google mail 2fa codes active

Google's 2-Step Verification (2SV) codes, also known as Google Authenticator codes, are valid for a limited time. The exact duration of validity varies depending on the type of 2SV code and the device you're using.

Here are the general guidelines:

  1. Time-based One-Time Password (TOTP) codes: These codes are valid for 30 seconds to 1 minute. If you don't use the code within this time frame, it will expire and you'll need to generate a new one.
  2. HMAC-based One-Time Password (HOTP) codes: These codes are valid indefinitely, meaning they don't expire. However, if you reset your 2SV settings or change your phone, you'll need to re-synchronize your HOTP codes.
  3. Google Prompt codes: These codes are valid for 30 seconds to 1 minute, similar to TOTP codes.

If you're using the Google Authenticator app, you can check the validity of your 2SV code by looking at the clock icon next to the code. If the clock is still ticking, the code is still valid. If the clock has stopped, the code has expired.

It's essential to use your 2SV codes promptly to ensure the security of your Google account. If you're having trouble with your 2SV codes or need to reset them, you can always visit the Google Account settings page and follow the instructions to re-enable 2SV.