Skip to main content

webhookMiddleware

@rotorsoft/act-root


@rotorsoft/act-root / act-http/src/receiver/fastify / webhookMiddleware

Function: webhookMiddleware()

webhookMiddleware(options): (request, reply) => Promise<void>

Defined in: libs/act-http/src/receiver/fastify/index.ts:60

Build a Fastify preHandler hook that verifies the request signature (when secret is set), enforces Idempotency-Key, and claims the key on the configured store. See the module-level docs for usage.

Parametersโ€‹

optionsโ€‹

CheckWebhookOptions

Returnsโ€‹

(request, reply) => Promise<void>