We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abc63f3 commit 7e0a273Copy full SHA for 7e0a273
src/JWT.php
@@ -111,7 +111,7 @@ public static function decode($jwt, $keyOrKeyArray)
111
throw new UnexpectedValueException('Algorithm not supported');
112
}
113
114
- $key = self::getKey($keyOrKeyArray, empty($header->kid) ? null : $header->kid);
+ $key = self::getKey($keyOrKeyArray, property_exists($header, 'kid') ? $header->kid : null);
115
116
// Check the algorithm
117
if (!self::constantTimeEquals($key->getAlgorithm(), $header->alg)) {
0 commit comments