WebhookSignatureVerifier
WebhookSignatureVerifier = (
rawBody,signatureHeader,secrets) =>Promise<boolean>
Defined in: src/resources/webhook-handler-core.ts:19
Checks a signature header against the raw body for any of the secrets.
Parameters
Section titled “Parameters”rawBody
Section titled “rawBody”signatureHeader
Section titled “signatureHeader”string | undefined
secrets
Section titled “secrets”readonly string[]
Returns
Section titled “Returns”Promise<boolean>
Independent open-source project. Not affiliated with, endorsed by or sponsored by Meta or WhatsApp. Released under the MIT licence. Source on GitHub.