You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: GitHub auth resets on each VS Code Web session in Coder #584
Hi there, I think this is an issue that others have had as well, but whenever I use VS Code Web with a Coder workspace, every new browser session of the IDE (for even the same workspace) resets all Github logings (Github CoPilot, Actions, Pull Requests, Settings Sync, etc.). Is there a way to fix this? Another thread from earlier this year mentioned changing one setting in the module, but not sure how that panned out.
I am also running into this SecretStorage persistence bug, but I want to add some context: this affects both Microsoft Auth and GitHub Auth, and it happens on a simple browser refresh, not just on completely new browser sessions.
The Behavior:
When using the vscode-web module, I initiate the "Sign in with Microsoft" (for C# Dev Kit) or "Sign in to use GitHub Copilot" flow. The OAuth succeeds, and my profile avatar appears in the bottom-left menu.
However, the exact moment I hit refresh on the browser tab, the session is completely wiped. My account vanishes from the menu, and I am forced to authenticate all over again.
Troubleshooting & code-server Comparison:
Routing makes no difference: I thought this might be a path-routing OAuth drop, so I reconfigured my Traefik reverse proxy to use DNS-01 Let's Encrypt challenges and put vscode-web on a fully isolated Wildcard Subdomain (subdomain = true). The auth drop still happens on refresh.
code-server works perfectly: I tested the exact same workspace using the code-server module (using standard path routing). I logged into GitHub Copilot, refreshed the page, and the auth persisted successfully.
I unfortunately cannot just use code-server because proprietary extensions like the C# Dev Kit and Oracle SQL Developer are only available on the official Microsoft marketplace, restricting me to vscode-web.
My Use Case / Question:
I am trying to build a 100% web-based .NET development environment. vscode-web perfectly solves the marketplace availability problem, but this auth-wiping bug breaks GitHub/Microsoft integration and makes extensions like C# Dev Kit unusable.
Is there any known workaround, environment variable, or startup flag to force vscode-web to persist its token store to the backend disk volume (like code-server does) instead of ephemeral browser memory?
Self-hosted Coder via Docker Compose (behind Traefik v3)
Workspace provider: kreuzwerker/docker
Base image: codercom/enterprise-base:ubuntu
Tested with both path-routing and wildcard subdomains.
Activity
coolestowl commentedon Dec 31, 2025
Encountering the same issue, any updates here ?
akhanalcs commentedon Aug 28, 2026
I am also running into this SecretStorage persistence bug, but I want to add some context: this affects both Microsoft Auth and GitHub Auth, and it happens on a simple browser refresh, not just on completely new browser sessions.
The Behavior:
When using the
vscode-webmodule, I initiate the "Sign in with Microsoft" (for C# Dev Kit) or "Sign in to use GitHub Copilot" flow. The OAuth succeeds, and my profile avatar appears in the bottom-left menu.However, the exact moment I hit refresh on the browser tab, the session is completely wiped. My account vanishes from the menu, and I am forced to authenticate all over again.
Troubleshooting &
code-serverComparison:vscode-webon a fully isolated Wildcard Subdomain (subdomain = true). The auth drop still happens on refresh.code-serverworks perfectly: I tested the exact same workspace using thecode-servermodule (using standard path routing). I logged into GitHub Copilot, refreshed the page, and the auth persisted successfully.code-serverbecause proprietary extensions like the C# Dev Kit and Oracle SQL Developer are only available on the official Microsoft marketplace, restricting me tovscode-web.My Use Case / Question:
I am trying to build a 100% web-based .NET development environment.
vscode-webperfectly solves the marketplace availability problem, but this auth-wiping bug breaks GitHub/Microsoft integration and makes extensions like C# Dev Kit unusable.Is there any known workaround, environment variable, or startup flag to force
vscode-webto persist its token store to the backend disk volume (likecode-serverdoes) instead of ephemeral browser memory?kreuzwerker/dockercodercom/enterprise-base:ubuntumatifali commentedon Oct 9, 2026
@akhanalcs Unfortunately, there is no known workaround for this.
fix(vscode-web)!: add opt-in persistent browser secret storage (#1259)