@shieldz/sdk
    Preparing search index...

    Function verifySignature

    • Verify a Shieldz webhook signature. Pass the raw request body, not a re-serialized object. Header: t=<unix>,v1=<hex>[,v1=<hex>] (multiple v1 values during the 24h rotation overlap); the signed payload is ${t}.${body}. Resolves true, or rejects with SignatureVerificationError.

      Parameters

      • rawBody: string | Uint8Array<ArrayBufferLike>
      • signatureHeader: string
      • signingSecret: string
      • options: VerifyOptions = {}

      Returns Promise<boolean>