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

Method oauthHostFor

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

Source from the content-addressed store, hash-verified

419 }
420
421 private oauthHostFor(
422 oauthRef?: KimiOAuthTokenRef | undefined,
423 oauthHost?: string | undefined,
424 ): string {
425 return oauthRef?.oauthHost ?? oauthHost ?? this.flowConfig.oauthHost;
426 }
427
428 private identityHeaders(): Record<string, string> | undefined {
429 if (this.identity === undefined) return undefined;

Callers 6

statusMethod · 0.95
loginMethod · 0.95
logoutMethod · 0.95
ensureFreshMethod · 0.95
getCachedAccessTokenMethod · 0.95
tokenProviderMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected