Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
*/
65
export
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
createApiKey
Function · 0.90
auth.test.ts
File · 0.85
Calls
1
generateSecureToken
Function · 0.90
Tested by
no test coverage detected