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

Method status

packages/oauth/src/toolkit.ts:135–150  ·  view source on GitHub ↗
(
    providerName?: string | undefined,
    oauthRef?: KimiOAuthTokenRef | undefined,
  )

Source from the content-addressed store, hash-verified

133 }
134
135 async status(
136 providerName?: string | undefined,
137 oauthRef?: KimiOAuthTokenRef | undefined,
138 ): Promise<AuthStatus> {
139 const name = providerName ?? KIMI_CODE_PROVIDER_NAME;
140 const oauthHost = this.oauthHostFor(oauthRef);
141 const oauthKey = oauthRef?.key ?? this.defaultOAuthKey(undefined, oauthHost);
142 return {
143 providers: [
144 {
145 providerName: name,
146 hasToken: await this.managerFor(name, oauthKey, oauthHost).hasToken(),
147 },
148 ],
149 };
150 }
151
152 async login(
153 providerName?: string | undefined,

Callers 1

mainFunction · 0.95

Calls 4

oauthHostForMethod · 0.95
defaultOAuthKeyMethod · 0.95
managerForMethod · 0.95
hasTokenMethod · 0.80

Tested by

no test coverage detected