Skip to content

Function: parseWebhook() ​

ts
function parseWebhook(
   secret, 
   body, 
   header, 
   opts?
): WebhookDelivery;

The delivery, once its signature holds; a WebhookVerificationError otherwise.

Parameters ​

ParameterType
secretstring
bodystring | Uint8Array
headerstring | null | undefined
optsVerifyOptions

Returns ​

WebhookDelivery

Talkline documentation