Skip to content
Discussion options

You must be logged in to vote

✅ 1️⃣ Check Your GitHub 2FA Method
First question:

Are you setting up:

✅ TOTP (Authenticator App)
or
✅ Passkey / Windows Hello?
These are different.

If you're using Microsoft Authenticator, you must choose:

“Set up using an app”
NOT passkey.

✅ 2️⃣ Time Sync Issue (Very Common)
If you scan the QR code but GitHub says:

“Invalid code”

Then most likely your system time is slightly out of sync.

On Windows 11:

Go to Settings → Time & Language → Date & Time
Turn on:
✅ Set time automatically
✅ Set time zone automatically
Click Sync now
Then try again.

TOTP codes are time-based — even 30 seconds difference breaks it.

✅ 3️⃣ Are You Using Microsoft Authenticator on Desktop?
Important:

Microsoft Auth…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by niceDeve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug GitHub or a GitHub feature is not working as intended Actions Build, test, and automate your deployment pipeline with world-class CI/CD Accessibility Making GitHub useable for members of the disability community source:ui Discussions created via Community GitHub templates
2 participants