Skip to content

Person Access Token can't be set for multiple GHES #8428

Closed

Description

@qasic

Description

I've registered Refined Github with two GHES environments.

When I set the Personal Access Token for one GHES environment, it also sets the same value for the second GHES environment.

My Personal Access Token for Github.com is not affected by this.

How to replicate the issue + URL

  1. Using the instructions at https://fregante.github.io/webext-permission-toggle
    1. Register the first GHES instance
    2. Register the second GHES instance
  2. Open the Options page for Refined GitHub
  3. In the Domain Selector, choose the first GHES instance
  4. Enter the token
    • Notice that it works
  5. In the Domain Selector, choose the second GHES instance
    • Notice that the token is already filled in, but it's from the first instance

Extension version

25.4.8

Browser(s) used

Google Chrome 136.0.7103.49 (Official Build) (64-bit) (cohort: Stable Installs & Version Pins)

Token ⚠️

  • I set a token in the options page. I understand that some features require a token to work.

Activity

  1. added
    enterprise
    on May 3, 2025
  2. fregante commented on Jul 4, 2026

    @fregante
    Member

    I think #9775 will fix it thanks to fregante/webext-options-sync-per-domain#16. The listeners were not being removed so after switching domains multiple times in the same (options) page load, they would ALL sync the their values to the single current token.

    This is why it was difficult to repro: it works on the first domain change, but if you change again it stops.

    I think this was the same issue:

  3. added a commit that references this issue on Jul 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedbugenterprise

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions