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

Function expectedSignature

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

Source from the content-addressed store, hash-verified

12const PAYLOAD = { status: 'SUCCESS', chatId: 'abc-123', data: { text: 'hello' } }
13
14function expectedSignature(body: string, secret: string): string {
15 return 'sha256=' + createHmac('sha256', secret).update(body).digest('hex')
16}
17
18describe('dispatchCallback', () => {
19 beforeEach(() => {

Callers 1

Calls 1

updateMethod · 0.65

Tested by

no test coverage detected