- Added payload expiration time validation
This commit is contained in:
1 parent
d3bb2c248a
commit
23079e6040
2 files changed
+12
No files matched your search
@@ -29,6 +29,9 @@ class JsonWebTokenDecoder
|
||||
JsonWebTokenValidate::validateHeaderType($jsonArray);
|
||||
JsonWebTokenValidate::validateHeaderAlgorithm($jsonArray);
|
||||
}
|
||||
elseif ($key === 'payload') {
|
||||
JsonWebTokenValidate::validatePayloadExpiration($jsonArray);
|
||||
}
|
||||
|
||||
$this->$key = $jsonArray;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user