Skip to content

Commit

Permalink
Update AppleAccessToken.php
Browse files Browse the repository at this point in the history
  • Loading branch information
SystematicCZ authored Sep 11, 2023
1 parent a401969 commit 23ab296
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Token/AppleAccessToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 23ab296

Please sign in to comment.