sorokeep
    Preparing search index...

    Function verifyWebhookSignature

    • Verify an incoming webhook HMAC-SHA256 signature.

      Parameters

      • payload: string

        The raw request body string received by the webhook endpoint.

      • signature: string

        The signature header string (e.g. X-Sorokeep-Signature), with or without sha256= prefix.

      • secret: string

        The webhook signing secret.

      Returns boolean

      true if the signature is valid, false otherwise.