Skip to content

Add support for multiple user tokens - #10131

Merged
fregante merged 10 commits into
mainfrom
multi-token
Sep 27, 2026
Merged

fregante merged 10 commits into
mainfrom
multi-token

Conversation

@fregante

@fregante fregante commented Sep 26, 2026 •

Copy link
Copy Markdown
Member

The UI already appears to work:

Screenshot

I'll want to ensure that this does not degrade the performance for the most common use case, for example:

  • skip all checks if there's only one token

There are several possible UX improvements possible but they might come later on. For example:

  • better visual separation of each TokenInput block
  • integration with rgh-token-user
  • alert on welcome.html page if tokens already exist
  • verify hasToken calls
  • deduplicate tokens by user (?)
  • remove unused token fields at the beginning (first field empty, then token is in the later one)

@github-actions github-actions Bot added enhancement meta Related to Refined GitHub itself labels Sep 26, 2026
@fregante
fregante marked this pull request as ready for review September 27, 2026 08:36
import optionsStorage from '../options-storage.js';
import {api3} from './urls.js';

const cachedSettings = optionsStorage.getAll();

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to move getToken out of options-storage because it caused a dependency cycle.

@fregante
fregante enabled auto-merge (squash) September 27, 2026 08:56
@fregante
fregante merged commit ebb06da into main Sep 27, 2026
13 checks passed
@fregante
fregante deleted the multi-token branch October 20, 2026 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement meta Related to Refined GitHub itself

Development

Successfully merging this pull request may close these issues.

Multiple Github User Accounts

1 participant