Total Complexity | 4 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
25 | class JWTClearTokenListener |
||
26 | { |
||
27 | public function __construct( |
||
31 | } |
||
32 | |||
33 | public function onJwtInvalid(JWTInvalidEvent $event): void |
||
34 | { |
||
35 | $this->clearJwtCookie($event->getResponse()); |
||
36 | } |
||
37 | |||
38 | public function onJwtExpired(JWTExpiredEvent $event): void |
||
41 | } |
||
42 | |||
43 | private function clearJwtCookie(Response $response): void |
||
49 |