| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | public function run($authorizationHeader) |
||
| 40 | { |
||
| 41 | // remove the `Bearer` string from the header and keep only the token |
||
| 42 | $token = str_replace('Bearer', '', $authorizationHeader); |
||
| 43 | |||
| 44 | $ok = $this->jwtAuthAdapter->invalidate($token); |
||
| 45 | |||
| 46 | if (!$ok) { |
||
| 47 | throw new MissingTokenException(); |
||
| 48 | } |
||
| 49 | |||
| 50 | return true; |
||
| 51 | } |
||
| 52 | |||
| 54 |