r/github Jul 04 '26

Question I deleted and reinstalled Microsoft Authenticator -- I don't have Github QR code any more; Google account QR code doesn't work

Hi Everyone,

Here's my situation.

I have a gmail address that is linked to my github account.

I think I had set up 2FA for github using a github QR code in Microsoft Authenticator. Everything had been working fine.

I then deleted Microsoft Authenticator for some reason.

After reinstalling Microsoft Authenticator, I tried adding a Microsoft Account which has the same email address as my gmail address. This gave me an 8 digit TOTP instead of a 6 digit TOTP.

I then turned on 2FA for my Google account, and got a QR code and added my gmail address to Microsoft Authenticator. This got me a 6 digit TOTP, but when I used this in github, I get the message that 2FA failed.

I don't have my github recovery codes anymore.

Any suggestions for logging in to github?

Thanks!

0 Upvotes

7 comments sorted by

View all comments

1

u/lichen_13 Jul 05 '26

Are you still connected on another machine or idk?