MCPcopy Index your code
hub / github.com/refined-github/refined-github / getToken

Function getToken

source/options-storage.ts:53–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51const cachedSettings = optionsStorage.getAll();
52
53export async function getToken(): Promise<string | undefined> {
54 const {personalToken} = await cachedSettings;
55 return personalToken;
56}
57
58export async function hasToken(): Promise<boolean> {
59 return Boolean(await getToken());

Callers 12

hasTokenFunction · 0.85
api.tsxFile · 0.85
getErrorFunction · 0.85
v3uncachedFunction · 0.85
v4uncachedFunction · 0.85
expectTokenFunction · 0.85
hasValidGitHubComTokenFunction · 0.85
verifyFunction · 0.85
checkTokenFunction · 0.85
setVersionFunction · 0.85
validateTokenCheckboxFunction · 0.85
addSidebarReviewButtonsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected