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

Method runtimeOAuthRef

packages/node-sdk/src/auth.ts:308–318  ·  view source on GitHub ↗
(
    providerName: string | undefined,
    oauthRef?: OAuthRef | undefined,
  )

Source from the content-addressed store, hash-verified

306 }
307
308 private runtimeOAuthRef(
309 providerName: string | undefined,
310 oauthRef?: OAuthRef | undefined,
311 ): OAuthRef | undefined {
312 if ((providerName ?? KIMI_CODE_PROVIDER_NAME) !== KIMI_CODE_PROVIDER_NAME) return oauthRef;
313 const auth = this.resolveManagedAuth(providerName);
314 return resolveKimiCodeRuntimeAuth({
315 configuredBaseUrl: auth.baseUrl,
316 configuredOAuthRef: oauthRef ?? auth.oauthRef,
317 }).oauthRef;
318 }
319}

Callers 2

getCachedAccessTokenMethod · 0.95
KimiAuthFacadeClass · 0.95

Calls 2

resolveManagedAuthMethod · 0.95

Tested by

no test coverage detected