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

Function generateEncryptedApiKey

apps/sim/lib/api-key/crypto.ts:73–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71 * @returns A new encrypted API key string
72 */
73export function generateEncryptedApiKey(): string {
74 return `sk-sim-${generateSecureToken(24)}`
75}
76
77/**
78 * Determines if an API key uses the new encrypted format based on prefix

Callers 2

createApiKeyFunction · 0.90
auth.test.tsFile · 0.85

Calls 1

generateSecureTokenFunction · 0.90

Tested by

no test coverage detected