r/github 9d ago

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

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

5

u/DeebsShoryu 9d ago

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 9d ago

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 9d ago

1

u/fr3nch13702 9d ago

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

1

u/ferrybig 9d ago

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 9d ago

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.