Skip to content

BeechCMS


BeechCMS / @beechcms/core / verifyWebhookSignature

Function: verifyWebhookSignature() ​

verifyWebhookSignature(body, signature, secret): Promise<boolean>

Verifies an inbound signature against the recomputed HMAC. Accepts the sha256= prefix on the provided signature (optional).

Parameters ​

body ​

string

signature ​

string | null | undefined

secret ​

string

Returns ​

Promise<boolean>