Conditions | 3 |
Paths | 3 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
38 | public function checkClaim($value) |
||
39 | { |
||
40 | if (!is_int($value)) { |
||
41 | throw new InvalidClaimException('"exp" must be an integer.', self::CLAIM_NAME, $value); |
||
42 | } |
||
43 | if (time() > $value + $this->allowedTimeDrift) { |
||
44 | throw new InvalidClaimException('The JWT has expired.', self::CLAIM_NAME, $value); |
||
45 | } |
||
46 | } |
||
47 | |||
56 |