@hatang/sdk
    Preparing search index...

    Function constructWebhookEvent

    • Verify a webhook delivery and return the event, or throw HatangSignatureError.

      Type Parameters

      • D = Record<string, unknown>

      Parameters

      • rawBody: RawBody
      • headers: HeaderBag
      • secret: string
      • options: { toleranceSec?: number } = {}

      Returns Promise<WebhookEvent<D>>