MCPcopy
hub / github.com/simstudioai/sim / isLegacyApiKeyFormat

Function isLegacyApiKeyFormat

apps/sim/lib/api-key/crypto.ts:91–93  ·  view source on GitHub ↗
(apiKey: string)

Source from the content-addressed store, hash-verified

89 * @returns true if the key uses the legacy format (sim_ prefix)
90 */
91export function isLegacyApiKeyFormat(apiKey: string): boolean {
92 return apiKey.startsWith('sim_') && !apiKey.startsWith('sk-sim-')
93}
94
95/**
96 * Deterministically hashes a plain-text API key for indexed lookup. The hash

Callers 3

formatApiKeyForDisplayFunction · 0.90
crypto.test.tsFile · 0.90
auth.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected