public function checkClaim(JWTInterface $jwt) { if (!$jwt->hasClaim('sub')) { return []; } $subject = $jwt->getClaim('sub'); Assertion::true($this->isSubjectAllowed($subject), sprintf('The subject "%s" is not allowed.', $subject)); return ['sub']; }