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

Method hasToken

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

Source from the content-addressed store, hash-verified

235 }
236
237 async hasToken(): Promise<boolean> {
238 return (await this.loadState()).kind === 'valid';
239 }
240
241 async getCachedAccessToken(): Promise<string | undefined> {
242 const state = await this.loadState();

Callers 3

statusMethod · 0.80
loginMethod · 0.80

Calls 1

loadStateMethod · 0.95

Tested by

no test coverage detected