We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cafe96d commit d4afc96Copy full SHA for d4afc96
src/JWT.php
@@ -467,6 +467,11 @@ private static function getKey(
467
return $keyOrKeyArray;
468
}
469
470
+ if ($keyOrKeyArray instanceof CachedKeySet) {
471
+ // Skip "isset" check, as this will automatically refresh if not set
472
+ return $keyOrKeyArray[$kid];
473
+ }
474
+
475
if (!is_array($keyOrKeyArray) && !$keyOrKeyArray instanceof ArrayAccess) {
476
throw new UnexpectedValueException('Expecting a Key or an associative array of keys');
477
0 commit comments