How Can I Regain Access to My GitHub Account Without My 2FA Device?
Asked by
gpio.3in
My old phone has a broken screen, and it was the device I used for two-factor authentication on my GitHub account. I no longer have the authenticator access or recovery codes, so I can't complete the login process on my new phone. Is there a way to reset two-factor authentication or recover the account and enroll a new device?
Answers
Without the old authenticator and recovery codes, account recovery is the main option. There usually isnโt a simple way to bypass two-factor authentication, so follow the providerโs recovery steps and provide any requested verification details.
Reply to this answer
First, check whether youโre still signed in on another browser, computer, or the mobile app. If you find an active session, go to your account security settings and generate new recovery codes or register your new phone before that session expires. If youโre not signed in anywhere, try the official account recovery process. It may also recognize an SSH key that was previously added to the account, so try that before contacting support.
Reply to this answer
Add your answer
Answers are reviewed before publication.
gpio.3in: Unfortunately, Iโm not signed in anywhere anymore. I was logged in previously, but the session ended unexpectedly, so Iโll try the recovery process and check whether an old SSH key can help.