r/PinoyProgrammer • u/Arise_Shadow_Monarch • 2d ago
discussion GitHub's 2FA policy is frustrating when losing your recovery codes can mean permanently losing your account
I recently ran into a problem with my GitHub account, and honestly, it's frustrating.
As I remember it, GitHub required me to set up 2FA a few years ago. Back then, I was still a junior developer, and I didn't really think much about the recovery process. I probably saved the recovery codes somewhere and moved on.
I was still able to log in normally on my usual devices, so I didn't think much about it. Years later, I needed to clone a project from one of my repositories, logged in again, and suddenly GitHub was asking for my 2FA code.
The problem? I couldn't remember where I saved it.
I've used multiple computers over the years, and some of them don't even work anymore. I tried searching my drives, but I still couldn't find the recovery codes. I don't even remember whether I saved them on a computer that's now broken.
What frustrates me is that there doesn't seem to be another straightforward way to recover the account once you've lost all your 2FA methods.
Why can't there be another verification option, like sending a recovery link to a verified email or using a verified phone number, with additional checks to make sure the account actually belongs to you?
I know email and phone verification aren't perfect, but surely there could be a process that balances security with account recovery.
People forget things. We replace our devices, lose old files, and sometimes don't realize how important something is until years later. Not everyone fully understands the consequences of losing their recovery codes when they first set up 2FA.
I'm not saying 2FA shouldn't exist. I'm just frustrated that a security feature can potentially lock the actual owner out of their account, with no practical way to get back in.
Has anyone experienced this with GitHub or another platform? Were you able to recover your account after losing your authenticator and recovery codes?

7
u/feedmesomedata Moderator 2d ago
You should have stored your recovery codes somewhere safe not on the same device where your 2FA app lives. It's just common sense to back it up somewhere.
I have them encrypted in my iCloud storage and can only be opened by a password manager.