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

Function sign

packages/server/src/utils/callbackDispatcher.ts:8–10  ·  view source on GitHub ↗
(body: string, secret: string)

Source from the content-addressed store, hash-verified

6const RETRY_DELAYS = [0, 3000, 6000]
7
8function sign(body: string, secret: string): string {
9 return 'sha256=' + createHmac('sha256', secret).update(body).digest('hex')
10}
11
12export async function dispatchCallback(url: string, payload: Record<string, unknown>, secret?: string): Promise<void> {
13 const body = JSON.stringify(payload)

Callers 2

dispatchCallbackFunction · 0.70
_generateJwtTokenFunction · 0.50

Calls 1

updateMethod · 0.65

Tested by

no test coverage detected