Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
oauth-manager.test.ts
File · 0.80
status
Method · 0.80
login
Method · 0.80
Calls
1
loadState
Method · 0.95
Tested by
no test coverage detected