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

Function getClientId

apps/kimi-web/src/api/config.ts:90–96  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88}
89
90function getClientId(): string {
91 const stored = safeGetString(CLIENT_ID_KEY);
92 if (stored) return stored;
93 const generated = `web_${globalThis.crypto?.randomUUID?.() || Math.random().toString(36).slice(2)}`;
94 safeSetString(CLIENT_ID_KEY, generated);
95 return generated;
96}
97
98function webClientVersion(): string {
99 return typeof __KIMI_WEB_VERSION__ === 'string' && __KIMI_WEB_VERSION__.trim()

Callers 1

readKimiApiConfigFunction · 0.85

Calls 3

safeGetStringFunction · 0.90
safeSetStringFunction · 0.90
toStringMethod · 0.65

Tested by

no test coverage detected