mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Small fix
This commit is contained in:
@@ -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