Skip to content

Commit

Permalink
make apple access token php8 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Martin committed Oct 13, 2023
1 parent f947a24 commit b71a9ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Token/AppleAccessToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ 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();
$headers['RS256'] = 'RS256';
$decoded = JWT::decode($options['id_token'], $key, $headers);
}
break;
} catch (\Exception $exception) {
Expand Down

0 comments on commit b71a9ad

Please sign in to comment.