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

Function updater

source/github-helpers/github-token.ts:40–44  ·  view source on GitHub ↗
(apiBase: string, token: string)

Source from the content-addressed store, hash-verified

38
39export const tokenUser = new CachedFunction('token-user', {
40 async updater(apiBase: string, token: string): Promise<string> {
41 const response = await baseApiFetch({apiBase, token, path: 'user'});
42 const details = await response.json();
43 return details.login;
44 },
45 maxAge: {
46 // The exact token is forever associated to the user
47 days: 365,

Callers

nothing calls this directly

Calls 1

baseApiFetchFunction · 0.85

Tested by

no test coverage detected