mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Small fix
This commit is contained in:
1 parent
64ba33f3aa
commit
dea03f5396
1 file changed
+2
-2
@@ -8,8 +8,8 @@ use Tests\E2E\Client;
|
||||
trait WebhooksBase
|
||||
{
|
||||
|
||||
public static function getWebhookSignature($webhook, $signatureKey) :string
|
||||
{;
|
||||
public static function getWebhookSignature($webhook, $signatureKey): string
|
||||
{
|
||||
$payload = json_encode($webhook['data']);
|
||||
$url = $webhook['url'];
|
||||
return base64_encode(hash_hmac('sha1', $url . $payload, $signatureKey, true));
|
||||
|
||||
Reference in new issue
Block a user