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 35da0cc commit a85917dCopy full SHA for a85917d
src/Tqdev/PhpCrudApi/Middleware/JwtAuthMiddleware.php
@@ -34,7 +34,7 @@ private function getVerifiedClaims(String $token, int $time, int $leeway, int $t
34
if (!isset($algorithms[$algorithm])) {
35
return array();
36
}
37
- if (!in_array($algorithm, $requirements['alg'])) {
+ if (!empty($requirements['alg']) && !in_array($algorithm, $requirements['alg'])) {
38
39
40
$hmac = $algorithms[$algorithm];
0 commit comments