Skip to content

bug: GitHub auth resets on each VS Code Web session in Coder #584

Open

Description

@35C4n0r

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.

This issue is raised by a user on Discord: https://discord.com/channels/747933592273027093/1442468415448158281

cc: @matifali

Activity

  1. added theissue type on Dec 9, 2025
  2. coolestowl commented on Dec 31, 2025

    @coolestowl

    Encountering the same issue, any updates here ?

  3. akhanalcs commented on Aug 28, 2026

    @akhanalcs

    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.
    module "vscode-web" {
      count          = data.coder_workspace.me.start_count
      source         = "registry.coder.com/coder/vscode-web/coder"
      version        = "~> 1.0"
      agent_id       = coder_agent.main.id
      accept_license = true
    
      subdomain = true # (Also fails on false)
      folder    = "/home/coder"
      order     = 1
    
      extensions = [
        "ms-dotnettools.csdevkit",
        "microsoft-aspire.aspire-vscode"
      ]
    }
    
  4. matifali commented on Oct 9, 2026

    @matifali
    Collaborator

    @akhanalcs Unfortunately, there is no known workaround for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions