Error with Github Account in an extension in VS Code

2025-12-16T10:08:38.22+00:00

I’m trying to sign in to VS Code either with my GitHub account or with Hotmail in order to synchronize the C# Dev Kit extension, but I get the error shown in the image. What do I need to do??? I can send you a pic of the problem.

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Q&A Assist
    2025-12-16T10:08:51.0133333+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    If you're encountering an error while trying to sign in to Visual Studio Code with your GitHub account or Hotmail, there are a few troubleshooting steps you can take:

    1. Check for HSTS Issues: Ensure that HTTP Strict Transport Security (HSTS) is not enabled for localhost on your default web browser. You can check this by using the following steps:
      • For Microsoft Edge, go to edge://net-internals/#hsts and enter localhost under the Delete domain security policies section.
      • For Google Chrome, go to chrome://net-internals/#hsts and enter localhost under the Delete domain security policies section.
    2. Run Visual Studio Code as the Correct User: Make sure you are running Visual Studio Code with the same account that you are signed into Windows with. You can verify this by checking the Task Manager and ensuring the username for the Code.exe process matches your signed-in Windows account.
    3. Re-authenticate Your Account: If you are still having issues, you may need to refresh your credentials. Look for an option to refresh your credentials in the Visual Studio Code interface.
    4. Remove and Re-add Your Account: If the problem persists, consider removing and then re-adding your GitHub account in Visual Studio Code. This can often resolve sign-in issues.

    If these steps do not resolve the issue, you may want to check for any specific error messages that could provide more insight into the problem.

    0 comments No comments

  2. Susmitha T (INFOSYS LIMITED) 1,875 Reputation points Microsoft External Staff
    2025-12-16T12:52:32.6733333+00:00

    Thanks for reaching out!

    This is a common VS Code sign-in/Sync issue, usually caused by blocked authentication, cached credentials, or network restrictions, not by the C# Dev Kit itself.

     Try these fixes (in order):

     1.Sign in via VS Code Accounts (not the extension)

    • Open VS Code
    • Press ctrl+ shift+ P
    • Run Accounts: sign in
    • Choose Microsoft or GitHub
    • After sign-in succeeds, reopen C# Dev Kit

    C# Dev kit uses the global VS Code account, not a separate login.

     2. Clear VS Code cached credentials: Sometimes a broken auth cache causes this error

    • Close VS Code, Delete these folders:

    Windows: %APPDATA%\Code\User\globalstorage

    %APPDATA%\Code\CachedData

    MacOS: ~/Library/Application Support/Code/User/globalStorage

    Linux: ~/ .config/code/User/globalStorage

    Then reopen VS code and sign in again.

     
    3.Check network/Proxy/firewall: This error often happens if:

    • You're behind a corporate proxy
    • Firewall blocks github.com,

    login.microsoftonline.com

    If using a proxy:

    • Open Settings
    • Search proxy

    set: "https.proxySupport": "on"

     Or temporarily test on a different network (Mobile hotspot)

     

    4.Update VS Code: older VS Code versions have broken auth flows.

    • Help -> Check for updates
    • Restart after updating

    **
    5.Sign in via browser manually:** If login window fails:

    • Run Accounts: Sign in
    • When browser opens, completely login fully.
    • Ensure browser is not blocking pop-ups or third-party cookies.

    Let me know if you need any further help with this. I will be happy to assist.
    If you find this helpful, Kindly mark the provided solution as "Accept Answer", so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.


  3. Bruce (SqlWork.com) 82,146 Reputation points Volunteer Moderator
    2025-12-16T19:54:03.7233333+00:00

    The c# extension requires a visual studio subscription plan. If you qualify you can use the free subscription level. So create a visual studio essentials subscription and use this account to login

    https://visualstudio.microsoft.com/dev-essentials/

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.