Crypto Middleware
    Preparing search index...

    Function verifyRequestSignature

    • Verify the HMAC-SHA256 signature of a request (x-signature or x-hub-signature-256 header) with the hmacKey of a middleware configuration. Shared by the Express and Fastify adapters.

      Parameters

      • config: MiddlewareConfig
      • headers: Record<string, string | string[] | undefined>
      • body: unknown

      Returns void

      500 when hmacKey is not configured, 401 when the signature is missing or invalid.