From be6eb589e86b0f8ca9e050765b3375dfab5bf91e Mon Sep 17 00:00:00 2001 From: Ajumal Date: Wed, 10 May 2023 18:08:43 +0530 Subject: [PATCH] fix: Allow KID index 0 --- src/JWT.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/JWT.php b/src/JWT.php index 421c42c2..c83ff099 100644 --- a/src/JWT.php +++ b/src/JWT.php @@ -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'); }