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

Function configuredOAuthRef

packages/oauth/src/managed-kimi-code.ts:283–294  ·  view source on GitHub ↗
(
  oauthRef: ManagedKimiOAuthRefInput | undefined,
)

Source from the content-addressed store, hash-verified

281}
282
283function configuredOAuthRef(
284 oauthRef: ManagedKimiOAuthRefInput | undefined,
285): ManagedKimiOAuthRef | undefined {
286 if (oauthRef === undefined) return undefined;
287 const key = oauthRef.key;
288 if (key === undefined) return undefined;
289 return managedOAuthRef({
290 storage: oauthRef.storage,
291 key,
292 oauthHost: oauthRef.oauthHost,
293 });
294}
295
296export function kimiCodeEnvBaseUrl(env: ManagedKimiEnv = process.env): string | undefined {
297 return env.KIMI_CODE_BASE_URL;

Callers 2

resolveKimiCodeLoginAuthFunction · 0.85

Calls 1

managedOAuthRefFunction · 0.85

Tested by

no test coverage detected