Add-on components that enhance and customize the Visual Studio integrated development environment
Thanks, but the troubleshoot didn't help. I followed all steps.
One thing is I don't have "Microsoft Edge WebView2 Runtime" installed on my system.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi Team,
I am experiencing a persistent authentication failure in VS Code where the login interface displays "undefined" instead of the provider names (GitHub, Google, etc.).
The Issue:
When clicking the "Sign in to use AI Features" button, all authentication options appear as "Continue with undefined". Attempting to proceed triggers a pop-up stating: "Failed to sign in to undefined. Would you like to try again?".
Screenshots:
(Shows the "undefined" buttons)
(Shows the "Failed to sign in to undefined" error)
Environment:
Steps Taken (That Failed to Resolve):
It appears the extension is failing to resolve the provider name from the authentication service. Any guidance on how to force the "GitHub" provider would be appreciated.
Add-on components that enhance and customize the Visual Studio integrated development environment
Thanks, but the troubleshoot didn't help. I followed all steps.
One thing is I don't have "Microsoft Edge WebView2 Runtime" installed on my system.
Resolution: The issue was caused by using the version available in the Corporate Software Center. After uninstalling it and installing the latest version directly from the vendor website, the issue was resolved.
Thank you for reaching out!
This "Continue with undefined" login screen normally means the authentication WebView cannot load the provider metadata - so GitHub copilot cannot resolve the sign-in providers exposed by GitHub Authentication.
Since you already tried the common cleanup steps, this is almost always caused by corrupted WebView/token storage, not copilot itself.
Below is the working reset procedure:
1.Completely reset VS Code WebView cache: Close all instances of Visual Studio Code.
Delete these folders:
The service worker folder is usually the root cause of "undefined" providers.
2.Remove stored authentication tokens (Windows Credential Manager):
1.Open Credential Manager
2.Go to Windows Credentials
3.Delete entries containing:
This clears broken keytar tokens stored by VS Code.
3.Repair WebView runtime: VS Code authentication UI runs inside:
Repair it:
1.Settings-> Apps-> Installed Apps
2.Find Microsoft Edge WebView2 Runtime
3.Modify-> Repair
If missing -> reinstall WebView2 runtime form Microsoft.
4.Start VS Code without extensions (Verification step):
code --disable-extensions
Accounts -> Sign in with GitHub
If the login works -> another extension is overriding authentication UI.
5.Reinstall Only authentication components:
Inside Extensions:
1.Disable:
2.Reload VS Code
3.Enable GitHub Authentication First
4.Restart VS Code
5.Enable copilot again
Order matters because Copilot depends on the auth provider registration.
6.Force clean profile launch:
Run: </>Bash
code --user-data-dir %TEMP%\vscode-clear
If sign-in works here: Your main VS code profile is corrupted.
You can migrate settings afterward.
7. If still failing (Known 1.108.x issue):
There are authentication regressions reported in VS Code 1.108.x
Try temporarily:
Copilot authentication immediately restores in most cases.
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.