@contio/partner-sdk - v1.7.1
    Preparing search index...

    Class WebhookVerifier

    Index

    Constructors

    Methods

    • Parse and verify webhook payload

      Parameters

      • payload: string | Buffer<ArrayBufferLike>

        Raw request body

      • signature: string

        Signature from X-Contio-Signature header

      Returns ContioWebhookEvent | null

      Parsed webhook event or null if invalid

    • Verify webhook signature using HMAC-SHA256

      Parameters

      • payload: string | Buffer<ArrayBufferLike>

        Raw request body (string or Buffer)

      • signature: string

        Signature from X-Contio-Signature header

      Returns WebhookVerificationResult

      Verification result