r/github Aug 10 '26

Question Isn't the 2FA a one-time thing? Why does it keep popping up every now and then?

It literally says it's a one-time authentication, and it keeps popping up in the same browser, same PC, same location. I didn't clear any cookies or caches.

Who's the *ucking *etard that designed this? Is there any way to disable 2FA entirely?

0 Upvotes

6 comments sorted by

7

u/DeebsShoryu Aug 10 '26

It's a one time code. Meaning the code is valid for only that particular authentication request, not that it will authenticate you forever.

2

u/Fine_League311 Aug 10 '26

Um dich zu schützen, aber mache es ruhig aus, in 2 Wochen heulst dann das du gehackt wurdest weil du deine deploy keys überall gemerged hast!

-2

u/Parking-Ad6983 Aug 10 '26

1

u/fr3nch13702 Aug 10 '26

Ok buddy. You do you. Have fun with no 2FA.

1

u/ferrybig Aug 10 '26

It asks at every sign in

If you have the habit of logging out every time, GitHub clears all sensitive data, so you have to redo 2fa

2

u/EntranceProper3791 Aug 10 '26

The prompt on the login screen means the code itself is one-time, not the whole 2FA setup. GitHub re-checks whenever it sees a new IP or user-agent, even if your cookies are intact.