MCPcopy Index your code
hub / github.com/simstudioai/sim / generateSignature

Function generateSignature

apps/sim/tools/http/webhook_request.ts:9–12  ·  view source on GitHub ↗

* Generates HMAC-SHA256 signature for webhook payload

(secret: string, timestamp: number, body: string)

Source from the content-addressed store, hash-verified

7 * Generates HMAC-SHA256 signature for webhook payload
8 */
9function generateSignature(secret: string, timestamp: number, body: string): string {
10 const signatureBase = `${timestamp}.${body}`
11 return hmacSha256Hex(signatureBase, secret)
12}
13
14export const webhookRequestTool: ToolConfig<WebhookRequestParams, RequestResponse> = {
15 id: 'webhook_request',

Callers 1

webhook_request.tsFile · 0.85

Calls 1

hmacSha256HexFunction · 0.90

Tested by

no test coverage detected