MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / getCachedAccessToken

Method getCachedAccessToken

packages/oauth/src/toolkit.ts:254–262  ·  view source on GitHub ↗
(
    providerName?: string,
    oauthRef?: KimiOAuthTokenRef,
  )

Source from the content-addressed store, hash-verified

252 }
253
254 async getCachedAccessToken(
255 providerName?: string,
256 oauthRef?: KimiOAuthTokenRef,
257 ): Promise<string | undefined> {
258 const name = providerName ?? KIMI_CODE_PROVIDER_NAME;
259 const oauthHost = this.oauthHostFor(oauthRef);
260 const oauthKey = oauthRef?.key ?? this.defaultOAuthKey(undefined, oauthHost);
261 return this.managerFor(name, oauthKey, oauthHost).getCachedAccessToken();
262 }
263
264 tokenProvider(
265 providerName?: string | undefined,

Callers

nothing calls this directly

Calls 4

oauthHostForMethod · 0.95
defaultOAuthKeyMethod · 0.95
managerForMethod · 0.95
getCachedAccessTokenMethod · 0.65

Tested by

no test coverage detected