Light Logo
JavaScript SDK (v0.56.0)Reference

VerifyWebhookParams

Parameters for verifying a webhook signature.

Interface: VerifyWebhookParams

Parameters for verifying a webhook signature.

Properties

keyCacheSize?

optional keyCacheSize: number

Maximum number of HMAC keys to keep in the module-scoped cache.


payload

payload: Uint8Array

Raw webhook request body.


scheme?

optional scheme: string

Key for signatures in the signature.


secret

secret: string

The webhook secret.


signature

signature: string

The signature to verify.


tolerance?

optional tolerance: number

Maximum allowed age of the timestamp in seconds.