MCPcopy
hub / github.com/FlowiseAI/Flowise / generateAPIKey

Function generateAPIKey

packages/server/src/utils/apiKey.ts:7–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5 * @returns {string}
6 */
7export const generateAPIKey = (): string => {
8 const buffer = randomBytes(32)
9 return buffer.toString('base64url')
10}
11
12/**
13 * Generate the secret key

Callers 2

apiKey.test.tsFile · 0.90
createApiKeyFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected