/** * @param JWTDecodedEvent $event * @throws TokenExpiredException when token has expired * @throws TokenNotValidException when token matched no user */ public function onJWTDecodedResponse(JWTDecodedEvent $event) { if (!$event->isValid()) { throw new TokenExpiredException(); } }