diff --git a/EventListener/RejectBlockedTokenListener.php b/EventListener/RejectBlockedTokenListener.php index a84180ea..31a48f69 100644 --- a/EventListener/RejectBlockedTokenListener.php +++ b/EventListener/RejectBlockedTokenListener.php @@ -25,7 +25,7 @@ public function __invoke(JWTAuthenticatedEvent $event): void if ($this->blockedTokenManager->has($event->getPayload())) { throw new InvalidTokenException('JWT blocked'); } - } catch (MissingClaimException) { + } catch (MissingClaimException $e) { // Do nothing if the required claims do not exist on the payload (older JWTs won't have the "jti" claim the manager requires) } }