| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 21 | public function checkClaim(JWTInterface $jwt) |
||
| 22 | { |
||
| 23 | if (!$jwt->hasClaim('jti')) { |
||
| 24 | return []; |
||
| 25 | } |
||
| 26 | |||
| 27 | $jti = $jwt->getClaim('jti'); |
||
| 28 | if (!$this->isJtiValid($jti)) { |
||
| 29 | throw new \InvalidArgumentException(sprintf('Invalid token ID "%s".', $jti)); |
||
| 30 | } |
||
| 31 | |||
| 32 | return ['jti']; |
||
| 33 | } |
||
| 34 | |||
| 42 |