From 23ab29609611d6e34a6a8ef26477b17d368e8d3a Mon Sep 17 00:00:00 2001 From: SystematicCZ <53008590+SystematicCZ@users.noreply.github.com> Date: Mon, 11 Sep 2023 14:39:24 +0200 Subject: [PATCH] Update AppleAccessToken.php --- src/Token/AppleAccessToken.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Token/AppleAccessToken.php b/src/Token/AppleAccessToken.php index e12e640..2c01bfa 100644 --- a/src/Token/AppleAccessToken.php +++ b/src/Token/AppleAccessToken.php @@ -47,8 +47,8 @@ public function __construct(array $keys, array $options = []) try { $decoded = JWT::decode($options['id_token'], $key); } catch (\UnexpectedValueException $e) { - $header = (object) ["alg" => 'RS256']; - $decoded = JWT::decode($options['id_token'], $key, $header); + $headers = (object) ["alg" => 'RS256']; + $decoded = JWT::decode($options['id_token'], $key, $headers); } break; } catch (\Exception $exception) {