Skip to content

Commit

Permalink
Fixed headers cannot be passed by reference error patrickbussmann#43
Browse files Browse the repository at this point in the history
  • Loading branch information
Tadas Želvys committed Jun 14, 2023
1 parent 561ae0f commit f75fcaa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Token/AppleAccessToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ public function __construct(array $keys, array $options = [])
try {
$decoded = JWT::decode($options['id_token'], $key);
} catch (\UnexpectedValueException $e) {
$decoded = JWT::decode($options['id_token'], $key, ['RS256']);
$headers = new \stdClass();
$decoded = JWT::decode($options['id_token'], $key, $headers);
}
break;
} catch (\Exception $exception) {
Expand Down

0 comments on commit f75fcaa

Please sign in to comment.