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

Function managedOAuthRef

packages/oauth/src/managed-kimi-code.ts:270–281  ·  view source on GitHub ↗
(options: {
  readonly key: string;
  readonly oauthHost?: string | undefined;
  readonly storage?: 'file' | 'keyring' | undefined;
})

Source from the content-addressed store, hash-verified

268}
269
270function managedOAuthRef(options: {
271 readonly key: string;
272 readonly oauthHost?: string | undefined;
273 readonly storage?: 'file' | 'keyring' | undefined;
274}): ManagedKimiOAuthRef {
275 const oauthHost = persistedOAuthHost(options);
276 return {
277 storage: options.storage ?? 'file',
278 key: options.key,
279 oauthHost,
280 };
281}
282
283function configuredOAuthRef(
284 oauthRef: ManagedKimiOAuthRefInput | undefined,

Callers 3

configuredOAuthRefFunction · 0.85
resolveKimiCodeOAuthRefFunction · 0.85

Calls 1

persistedOAuthHostFunction · 0.85

Tested by

no test coverage detected