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 authored and shenkimaro committed Jul 7, 2023
1 parent 3c7651c commit b0029ea
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 b0029ea

Please sign in to comment.