Skip to content

Trying to sign in for the C# Dev Kit using github with 2fa (passkey or security key) fails #2637

@vrabant

Description

@vrabant

Describe the Issue

After adding the C# Dev Kit extension to VS Code, I receive a notification to sign in to use it. I'm unable to sign in using my github account due to an error that seems related to having 2fa auth enabled (using passkey and/or security key).

Steps To Reproduce

  1. Start VS Code with the C# Dev Kit extension installed.
  2. Note the notification:
Image
  1. Click to sign in (same behavior occurs when clicking the notification in the bottom right and the extension status icon to sign in) and select Sign in with Github:Image
  2. Attempt to sign in with your github credentials and observe the following error:Image
  3. Try to click the "More Options" and observe that nothing happens. Other links on the page do work and will take you to different locations.
  4. Using the incorrect password on sign-in produces a proper invalid sign on, so it appears to be exclusively related to 2fa:Image

Expected Behavior

The "Sign in with Github" path should work and sign you in.

Environment Information

Windows 11 Pro
Version 10.0.26200 Build 26200

About VS Code output:
Version: 1.107.1 (user setup)
Commit: 994fd12f8d3a5aa16f17d42c041e5809167e845a
Date: 2025-12-17T14:15:14.850Z
Electron: 39.2.3
ElectronBuildId: 12895514
Chromium: 142.0.7444.175
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Windows_NT x64 10.0.26200

C# Dev Kit:
Identifier ms-dotnettools.csdevkit
Version 1.90.2
Last Updated 1 week ago
Size 180.51MB

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-identityIssues around subscription login/identificationbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions