diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/JWT.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/JWT.php b/src/JWT.php index 8170dba..d45052c 100644 --- a/src/JWT.php +++ b/src/JWT.php @@ -98,8 +98,8 @@ class JWT } if (is_array($key) || $key instanceof \ArrayAccess) { if (isset($header->kid)) { - if(!isset($key[$header->kid])) { - throw new UnexpectedValueException('"kid" not found in key map, unable to lookup correct key'); + if (!isset($key[$header->kid])) { + throw new UnexpectedValueException('"kid" invalid, unable to lookup correct key'); } $key = $key[$header->kid]; } else { |