VerifyWebhookSignatureInput
Defined in: libs/ccs-files-client/src/webhooks.ts:3
Properties
Section titled “Properties”rawBody
Section titled “rawBody”rawBody:
string|Uint8Array<ArrayBufferLike>
Defined in: libs/ccs-files-client/src/webhooks.ts:5
The request body exactly as received (before any JSON parsing).
signatureHeader
Section titled “signatureHeader”signatureHeader:
string|null|undefined
Defined in: libs/ccs-files-client/src/webhooks.ts:7
The X-Files-Signature header: t=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>">.
secret
Section titled “secret”secret:
string
Defined in: libs/ccs-files-client/src/webhooks.ts:9
The webhook secret you set with webhooks.set.
toleranceSeconds?
Section titled “toleranceSeconds?”
optionaltoleranceSeconds?:number
Defined in: libs/ccs-files-client/src/webhooks.ts:11
Maximum age (and clock skew) of the signature’s timestamp. Default 300 s.
optionalnow?:number|Date
Defined in: libs/ccs-files-client/src/webhooks.ts:13
The current time, for tests: a Date or milliseconds since the epoch. Default Date.now().