Skip to content

Commit

Permalink
Update AppleAccessToken.php
Browse files Browse the repository at this point in the history
Fix Firebase\JWT\JWT::decode(): Argument #3 ($headers) cannot be passed by reference
  • Loading branch information
SystematicCZ authored Sep 11, 2023
1 parent 561ae0f commit a401969
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']);
$header = (object) ["alg" => 'RS256'];
$decoded = JWT::decode($options['id_token'], $key, $header);
}
break;
} catch (\Exception $exception) {
Expand Down

0 comments on commit a401969

Please sign in to comment.