QR Codes

Lost or Expired 2FA QR Code? Here's What to Do

Closed the setup tab before scanning? QR code timed out? Here's what actually happened, why the service usually can't just show it to you again, and the real options you have from here.

Nency
Published Sep 12, 2026
4 min read

Why You Can't Just "See It Again"

Most services deliberately show a 2FA setup QR code exactly once, at the moment of generation, and don't store it anywhere retrievable afterward. This isn't a bug or an oversight — it's a security decision. A value this sensitive being permanently re-displayable would create an ongoing opportunity for it to be captured by anyone with brief access to the account's settings page, which defeats much of the point of keeping it secret in the first place. Understanding this upfront saves time: refreshing the page, searching for "show my secret key again" settings, or contacting support asking for the original code will almost always come up empty for a service using standard practice.

What Actually Happened, Depending on Your Situation

The Code Expired Before You Scanned It

Some setup flows show a QR code tied to a temporary session that times out after a few minutes if unused. If this happened, the fix is simple: restart the 2FA setup process from your account's security settings, which generates a fresh code with a fresh secret.

You Closed the Tab Before Scanning

Same situation, same fix — go back into your account's security settings and restart the 2FA enrollment flow. Since 2FA wasn't actually confirmed as active yet (that only happens after you enter a verification code back into the service), nothing was left in a half-configured state that needs cleanup.

You Scanned It, But Never Saved a Backup, and Now Need It on a New Device

This is a meaningfully different situation: 2FA is active on the account, but you don't have the original secret available to set up a second device. Here, restarting setup from scratch means first disabling 2FA on the account (using your currently working authenticator or saved backup codes), then re-enabling it to generate a brand-new QR code — see Google's guide to fixing common 2-Step Verification issues for a real-world version of this exact flow. See How to Migrate Your TOTP Accounts to a New Device for the fuller picture of device transitions.

You Lost Access Entirely and Have No Working Authenticator

This is the account-recovery scenario, not a QR-code problem specifically. See Locked Out of an Account with 2FA and No Backup Codes? for the realistic path forward.

Quick Decision Guide

Your SituationWhat To Do
Setup not yet confirmed, code expired/closedRestart setup — generates a fresh code, no cleanup needed
2FA active, need it on a second device, no backup savedDisable and re-enable 2FA to generate a new code, using your working authenticator to authorize the change
2FA active, no working authenticator, no backup codesUse the service's full account-recovery process

Preventing This From Happening Again

  • Don't start the 2FA setup flow until your authenticator is already open and ready — this avoids the code timing out while you go find your phone or open the right app.
  • Complete the verification step immediately after scanning, rather than leaving the tab open to "finish later."
  • Export an encrypted backup right after setup succeeds, so a future device change never depends on regenerating a fresh QR code at all. See Authenticator Backup Best Practices.
A missed or expired QR code is rarely a real emergency — it's almost always solvable by simply restarting the setup step. The situation only becomes genuinely difficult when 2FA is already active and there's no working authenticator or backup left to authorize a change.
Did you find this helpful?
52

Frequently Asked Questions

No, and be wary of anything claiming otherwise — legitimate services don't retain the original secret in a retrievable form specifically to prevent it from being exposed after the fact. Requesting it be resent is itself a phishing red flag.
No — 2FA only becomes active once you successfully enter a verification code back into the service. If the QR code expired before that step, nothing was left partially enabled that needs cleanup.
You'll need to disable 2FA first using your currently working authenticator or saved backup codes, then re-enable it to generate a fresh QR code for the new device.
N

About The Author

Nency

Author is a software developer and technical contributor at AuthBro. They specialize in building performance-oriented browser productivity systems and writing developer guidelines.

Related Guides

Explore additional resources on 2FA security and authentication.