MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / getAuthSecretsDirectory

Function getAuthSecretsDirectory

packages/server/src/utils/index.ts:1669–1671  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1667 * Used for file-based storage of TOKEN_HASH_SECRET, EXPRESS_SESSION_SECRET, JWT_*, etc.
1668 */
1669export const getAuthSecretsDirectory = (): string => {
1670 return process.env.SECRETKEY_PATH ? process.env.SECRETKEY_PATH : path.join(getUserHome(), '.flowise')
1671}
1672
1673/**
1674 * Generate a 32-byte auth secret (OWASP recommendation).

Callers 1

getOrCreateStoredSecretFunction · 0.85

Calls 1

getUserHomeFunction · 0.70

Tested by

no test coverage detected