Skip to content

BeechCMS


BeechCMS / @beechcms/client / verifyBeechWebhookSignature

Function: verifyBeechWebhookSignature() ​

verifyBeechWebhookSignature(options): Promise<boolean>

Validates an inbound BeechCMS webhook signature against a shared secret in constant time. Returns false without throwing if the payload, signature, or secret is invalid or mismatching. Accepts both sha256=<hex> and raw <hex> formats.

Parameters ​

options ​

VerifyWebhookSignatureOptions

Returns ​

Promise<boolean>