Skip to content

Commit be6eb58

Browse files
committed
fix: Allow KID index 0
1 parent 4543842 commit be6eb58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/JWT.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ private static function getKey(
439439
return $keyOrKeyArray;
440440
}
441441

442-
if (!isset($kid)) {
442+
if (empty($kid) && $kid !== '0') {
443443
throw new UnexpectedValueException('"kid" empty, unable to lookup correct key');
444444
}
445445

0 commit comments

Comments
 (0)