Skip to main content

VerifyOptions

@rotorsoft/act-root


@rotorsoft/act-root / act-http/src/receiver / VerifyOptions

Type Alias: VerifyOptions

VerifyOptions = object

Defined in: libs/act-http/src/receiver/verify.ts:23

Options for verifyWebhook.

Propertiesโ€‹

maxAgeSeconds?โ€‹

optional maxAgeSeconds?: number

Defined in: libs/act-http/src/receiver/verify.ts:30

Maximum acceptable timestamp drift in either direction, in seconds. Default: 300 (ยฑ5 minutes) โ€” matches Stripe / GitHub / Slack conventions. Tightening narrows the replay window; loosening accommodates clients with worse clock sync.


now?โ€‹

optional now?: number

Defined in: libs/act-http/src/receiver/verify.ts:35

Current Unix-seconds time. Exposed for tests; production callers should leave it undefined so wall-clock is used.