Skip to main content

Function: verifyWebhookSignature()

verifyWebhookSignature(args): boolean

Defined in: webhookSignature.ts:41

Constant-time verification of a received webhook signature. Accepts the signature with or without the sha256= prefix.

Parameters

ParameterType
args{ payload: string; secret: string; signature: string; }
args.payloadstring
args.secretstring
args.signaturestring

Returns

boolean