From 3ed4973b1b4f2339b4f82cfeacfaf845931e92b0 Mon Sep 17 00:00:00 2001 From: Martin Poirier Theoret Date: Wed, 25 May 2022 12:58:55 -0400 Subject: [PATCH 1/3] support guzzle 7 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 70ab64a..25d6661 100755 --- a/composer.json +++ b/composer.json @@ -8,7 +8,7 @@ ], "require": { "php": ">=5.6", - "guzzlehttp/guzzle": "~6.5", + "guzzlehttp/guzzle": "~6.5 || ^7.0", "firebase/php-jwt": "~5.2", "ext-json": "*", "ext-openssl": "*" From a4da39b1609436c7e65849a60f532785063a8fb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Poirier=20Th=C3=A9or=C3=AAt?= Date: Wed, 8 Mar 2023 19:38:26 -0500 Subject: [PATCH 2/3] change for firebase/php-jwt --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 25d6661..4a683ae 100755 --- a/composer.json +++ b/composer.json @@ -9,7 +9,7 @@ "require": { "php": ">=5.6", "guzzlehttp/guzzle": "~6.5 || ^7.0", - "firebase/php-jwt": "~5.2", + "firebase/php-jwt": "~6.4", "ext-json": "*", "ext-openssl": "*" }, From f04d3cb3d738aaf40c89da8d37c77753e1d0677e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Poirier=20Th=C3=A9or=C3=AAt?= Date: Mon, 19 Jun 2023 17:12:14 -0400 Subject: [PATCH 3/3] fix jwt decode headers argument --- src/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Client.php b/src/Client.php index 92765c4..af7d919 100644 --- a/src/Client.php +++ b/src/Client.php @@ -47,7 +47,7 @@ public function __construct(ClientInterface $httpClient, Config $config) public function verifyAndDecodeJwt($jwtToken) { return new JwtVerifyResponse( - JWT::decode($jwtToken, $this->getApplePublicKey(), ['RS256']) + JWT::decode($jwtToken, $this->getApplePublicKey()) ); }