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