Skip to content

Commit

Permalink
chore: code style again :)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanorosanelli committed Mar 20, 2024
1 parent 8d544f4 commit b9fa8fd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Token/AppleAccessToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ public function __construct(array $keys, array $options = [])
$decodeMethodReflection = new \ReflectionMethod(JWT::class, 'decode');
$decodeMethodParameters = $decodeMethodReflection->getParameters();
// Backwards compatibility for firebase/php-jwt >=5.2.0 <=5.5.1 supported by PHP 5.6
if (
array_key_exists(2, $decodeMethodParameters) &&
if (array_key_exists(2, $decodeMethodParameters) &&
'allowed_algs' === $decodeMethodParameters[2]->getName()
) {
$decoded = JWT::decode($options['id_token'], $key, ['RS256']);
Expand Down

0 comments on commit b9fa8fd

Please sign in to comment.