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
| Name | Type | Description |
|---|---|---|
payload | string | The raw request body. |
signature | string | The contents of the signature header. |
config | SignatureConfig | The configuration for the signature validator. |
Returns
boolean
Source: index.ts:287