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

Function generateApiKey

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

Source from the content-addressed store, hash-verified

63 * @returns A new API key string
64 */
65export function generateApiKey(): string {
66 return `sim_${generateSecureToken(24)}`
67}
68
69/**
70 * Generates a new encrypted API key with the 'sk-sim-' prefix

Callers 2

createApiKeyFunction · 0.90
auth.test.tsFile · 0.85

Calls 1

generateSecureTokenFunction · 0.90

Tested by

no test coverage detected