verifySignature

Function

Signature​

(payload: string, signature: string, config: SignatureConfig) => boolean

A helper function that verifies the signature of a webhook request. You can use this function if you use frameworks other than Express.

Parameters​

NameTypeDescription
payloadstringThe raw request body.
signaturestringThe contents of the signature header.
configSignatureConfigThe configuration for the signature validator.

Returns​

boolean

Source: index.ts:287