Open tadaszelvys opened 1 year ago
A quick fix for the issue is to change line 50 in src/Token/AppleAccessToken.php to:
$s = (object) ["alg" => 'RS256'];
$decoded = JWT::decode($options['id_token'], $key, $s);
that will work with later version of JWT (tested on 6.8)
ran into this first thing this week. causes the most randomly seemingly intermittent failure to auth. did the version rollback of jwt. gonna try the fix itaynoy posted.
this seems to be the commit that did it for reference.
https://github.com/firebase/php-jwt/commit/fb85f47cfaeffdd94faf8defdf07164abcdad6c3
it is a questionable design choice in 2023.
until it is fixed, lock firebase/php-jwt to previous version
composer req firebase/php-jwt:6.5.0