drupflare/worker - v1.0.4
    Preparing search index...

    Function verifyHook

    • Verifies one delivery.

      GitLab is rarely HMAC-verifiable: webhook-signature needs 19.0 with the webhook_signing_token flag, and older installs send the secret plaintext in X-Gitlab-Token. Both are accepted and the verdict records which one answered.

      Parameters

      • provider: ProviderId
      • headers: Headers
      • body: string
      • secret: string

      Returns Promise<HookVerdict>