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 ddfaddc commit bad1b04Copy full SHA for bad1b04
src/JWT.php
@@ -425,14 +425,15 @@ private static function getKey(
425
return $keyOrKeyArray;
426
}
427
428
+ if (empty($kid)) {
429
+ throw new UnexpectedValueException('"kid" empty, unable to lookup correct key');
430
+ }
431
+
432
if ($keyOrKeyArray instanceof CachedKeySet) {
433
// Skip "isset" check, as this will automatically refresh if not set
434
return $keyOrKeyArray[$kid];
435
436
- if (empty($kid)) {
- throw new UnexpectedValueException('"kid" empty, unable to lookup correct key');
- }
437
if (!isset($keyOrKeyArray[$kid])) {
438
throw new UnexpectedValueException('"kid" invalid, unable to lookup correct key');
439
0 commit comments