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

Method logout

packages/node-sdk/src/auth.ts:157–168  ·  view source on GitHub ↗
(providerName?: string | undefined)

Source from the content-addressed store, hash-verified

155 }
156
157 async logout(providerName?: string | undefined): Promise<KimiAuthLogoutResult> {
158 const result = await this.toolkit.logout(
159 providerName,
160 this.resolveRuntimeManagedAuth(providerName).oauthRef,
161 );
162 const updated = readConfigFile(this.options.configPath);
163 this.options.onConfigUpdated?.(updated);
164 return {
165 providerName: result.providerName,
166 ok: result.ok,
167 };
168 }
169
170 async getManagedUsage(providerName?: string | undefined): Promise<AuthManagedUsageResult> {
171 const auth = this.resolveRuntimeManagedAuth(providerName);

Callers

nothing calls this directly

Calls 3

readConfigFileFunction · 0.90
logoutMethod · 0.65

Tested by

no test coverage detected