Skip to content

Multiple github tokens #6446

Closed as not planned
Closed as not planned

Description

@DominicVonk

Description

It would be wonderful if you can add multiple github tokens, for other github spaces.

For example:

use token X for : https://github.com/google/...
use token Y for : https://github.com/github/...

Example URLs

Every page

Activity

  1. fregante commented on Apr 3, 2023

    @fregante
    Member

    I assume you have different accounts that have access to different repos/orgs, right?

    If not, why do you want to use multiple tokens?

  2. DominicVonk commented on Apr 3, 2023

    @DominicVonk
    Author

    Yes right

  3. fregante commented on Apr 3, 2023

    @fregante
    Member

    Many reasons not to do it unfortunately:

    • niche
    • requires extra UI to match tokens to a specific repo/org
    • your workflow requires you to constantly log in and out of GitHub, which is a bad base to work on IMHO. I'd suggest using multiple profiles instead, on which you can use different tokens
  4. sin-ack commented on Sep 12, 2024

    @sin-ack

    Sorry to bump this, but:

    requires extra UI to match tokens to a specific repo/org

    Can this be done based on the currently-logged in user for the given tab instead?

    your workflow requires you to constantly log in and out of GitHub

    With Firefox's containers this is no longer the case.

    I'd suggest using multiple profiles instead, on which you can use different tokens

    This is unfortunately more cumbersome because it requires you to maintain multiple windows, whereas with my current setup I can just have tabs on personal/work containers.

    It would be nice if this was reconsidered :)

  5. fregante commented on Sep 12, 2024

    @fregante
    Member

    It would be nice to have, but I have zero intention to write the whole component for the options page and logic to pick the right token after a page load.

    I’d be happy to accept a complete PR for this but it’s likely too much work. Anything related to this should not interfere with the simple single-token usage, not in performance nor in UX of the options page.

    For example I’d imagine a simple “add tokens for multiple users” button to duplicate the whole token verification widget as is. The username is not required because it can be fetched via API. This call can be cached forever via webext-storage-cache

    Related: A small part of this logic would be useful to this as well

  6. sin-ack commented on Sep 12, 2024

    @sin-ack

    Thanks for the response! I'll see if I can spend some time working on it.

  7. fregante commented on May 7, 2025

    @fregante
    Member

    @sin-ack I proposed a simple UI in #8436 if you have time to implement this.

  8. sin-ack commented on May 7, 2025

    @sin-ack

    Thanks for the reminder, I'll take a look.

  9. locked and limited conversation to collaborators on May 22, 2025
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

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions