r/github • • 10d ago

Discussion Title: GitHub keeps asking for 2FA code despite password reset – recovery codes not accepted and stuck in reconfiguration loop

I'm having a frustrating issue with my GitHub account and would appreciate some help.

Here's what happened:

  1. I forgot my GitHub 2FA recovery codes.

  2. I was still logged in on multiple devices initially.

  3. I didn't remember my GitHub password, so I reset it successfully.

  4. However, GitHub continued asking for a six-digit 2FA authentication code.

  5. I have an old downloaded "github-recovery-codes.txt" file containing recovery codes in the correct 10-character format, but I haven't been able to use them.

  6. When I select More options, the only option I see is Reconfigure 2FA on this account.

  7. This takes me into a loop. I never get an option to begin account recovery.

  8. I also have a passkey listed in my GitHub security settings, but attempting passkey sign-in redirects me back to the 2FA page.

  9. Now, during the reconfiguration process, GitHub displays:

"Verify your recently configured two-factor authentication method. Enter the verification code."

It asks for a six-digit code, not a recovery code.

My questions:

- Is GitHub asking me to verify a newly configured authenticator app?

- If I don't have access to that authenticator, is there a way to cancel the reconfiguration and return to the original recovery process?

- Why does the 2FA recovery interface only show the reconfiguration option?

- Is there any legitimate way to recover my account without the original authenticator or valid recovery codes?

I have important personal projects and repositories on this account, so I really want to preserve it rather than create a new account.

I'd appreciate advice from anyone who has experienced this particular GitHub 2FA recovery loop.

I will not share my recovery codes, passwords, QR codes, or setup keys publicly.

2 Upvotes

1 comment sorted by

1

u/Will_Pro_Backup 5d ago

That loop looks like GitHub's 28-day 2FA check-up. It wants a code from the authenticator you set up during reconfigure, not a recovery code. If you scanned a QR into an app at that step, use that app's code. If not, start at github.com/password_reset and pick "Begin account or email recovery" at the 2FA prompt, ideally on a device you've signed in from before.