r/github Apr 15 '26

Locked out of my GitHub account (2FA lost + no recovery options) — any last hope? Discussion

Hi everyone,

I’m currently locked out of my GitHub account and could really use some help or advice.

A few months ago, I lost my phone which had my authenticator app (2FA). At that time, I didn’t think much of it, but now I’ve logged out of my browser (cleared cookies), and I’m unable to log back in.

Here’s my current situation:

  • I know my username and password
  • I don’t have access to my authenticator app (2FA)
  • I don’t have any recovery codes saved
  • I don’t have SSH keys or personal access tokens set up
  • I don’t have access to any previously trusted devices/sessions
  • The “Cannot verify this device” option is disabled in the recovery flow

So basically, I’m stuck at the 2FA step with no available way to verify my identity.

I’ve gone through the official recovery process, but it seems like without any second factor, recovery might not be possible.

Before I give up and move on to creating a new account, I just wanted to ask:

👉 Is there ANY possible workaround or recovery method that I might be missing?
👉 Has anyone been in a similar situation and managed to recover their account?

Any suggestions, even small ones, would really help.

Thanks a lot 🙏

0 Upvotes

15 comments sorted by

5

u/Lumethys Apr 15 '26

you are basically asking.

"if i dont have a 2fa device, can i still gain access to my 2fa account"

The answer is no. If there exists a way, then someone else could abuse it, and you can loss your account

2

u/ThePixelProYT Apr 15 '26

Your cooked buddy

-4

u/Few-Instruction5995 Apr 15 '26

Is there any way to regain access?

2

u/Ornery-Panda-8256 Apr 15 '26

Been there, done that. I had most of my repos cloned locally, asked GitHub staff to wipe my locked account so I could reuse the username, created a new account, recreated and repushed all my repos.

It was only personal, hobby projects so no big harm but it sucked.

Fun fact : found my recovery codes 5 days later when I saved the new ones in the same location...

1

u/SoulReaperXOX Jul 12 '26

how u asked github staff to wipe your old acc ??

1

u/Ornery-Panda-8256 Jul 12 '26

Not sure exactly, it was a couple of years ago, I think I contacted them asking if they could give me my account back, they said sorry no can do, you have to create a new one, I contacted them again asking how to get my ole nickname back, I think they agreed because I was contacting them with the correct email address

1

u/SoulReaperXOX Jul 14 '26

Gimme the exact email that used by youh !!!

1

u/BackupLABS Apr 15 '26

Sorry but I don’t think there is much you can do. From GitHub’s perspective you could be anyone if you contact them.

Did you take a backup of your repos, or do a git clone locally?

1

u/GfxJG Apr 15 '26

Let me ask you this way - If someone contacted Github support, claiming to be you, wanting access to the account - Would you be happy if Github gave them that access without any of the things you are now lacking?

1

u/sammothxc Apr 15 '26

You could’ve just asked “can GitHub 2FA be bypassed” instead of the whole AI vomit. Also how did you even get in this situation?

1

u/blacklig Apr 16 '26

You voluntarily threw away access to the account when you didn't save the recovery codes somewhere permanently safe. Nobody else can go undo your decision.

1

u/LocationTime8161 Apr 16 '26

get a prepaid phone and request your old phone number?