Skip to content

Commit

Permalink
fix: Allow KID index 0
Browse files Browse the repository at this point in the history
  • Loading branch information
ajupazhamayil committed May 10, 2023
1 parent 4543842 commit be6eb58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JWT.php
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ private static function getKey(
return $keyOrKeyArray;
}

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

Expand Down

0 comments on commit be6eb58

Please sign in to comment.