diff --git a/src/SalesChamp/Webhooks/Authenticator.php b/src/SalesChamp/Webhooks/Authenticator.php index 727bcc8..e2a1b5c 100644 --- a/src/SalesChamp/Webhooks/Authenticator.php +++ b/src/SalesChamp/Webhooks/Authenticator.php @@ -41,6 +41,6 @@ public function sign($body) */ public function verify($signature, $body) { - return $signature === $this->sign($body); + return hash_equals($this->sign($body), $signature); } }