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