diff --git a/lib/Webhook.php b/lib/Webhook.php index 4d5d5171..5142d0cb 100644 --- a/lib/Webhook.php +++ b/lib/Webhook.php @@ -35,7 +35,7 @@ public function constructEvent($sigHeader, $payload, $secret, $tolerance) * @param string $payload Body of the webhook * @param string $secret Webhook secret from the WorkOS dashboard * @param int $tolerance Number of seconds old the webhook can be before it's invalid - * @return bool true + * @return string 'pass' if valid, otherwise an error message */ public function verifyHeader($sigHeader, $payload, $secret, $tolerance) {