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

Method getCachedAccessToken

packages/oauth/src/oauth-manager.ts:241–244  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

239 }
240
241 async getCachedAccessToken(): Promise<string | undefined> {
242 const state = await this.loadState();
243 return state.kind === 'valid' ? state.token.accessToken : undefined;
244 }
245
246 async logout(): Promise<void> {
247 await this.storage.remove(this.config.name);

Callers

nothing calls this directly

Calls 1

loadStateMethod · 0.95

Tested by

no test coverage detected