Conditions | 3 |
Paths | 3 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
41 | public function checkClaim($value) |
||
42 | { |
||
43 | if (!is_int($value)) { |
||
44 | throw new InvalidClaimException('The claim "iat" must be an integer.', self::CLAIM_NAME, $value); |
||
45 | } |
||
46 | if (time() < $value - $this->allowedTimeDrift) { |
||
47 | throw new InvalidClaimException('The JWT is issued in the future.', self::CLAIM_NAME, $value); |
||
48 | } |
||
49 | } |
||
50 | |||
59 |