*/ class UserNotFoundException extends AuthenticationException { private string $userIdentityField; private string $identity; public function __construct(string $userIdentityField, string $identity) { $this->userIdentityField = $userIdentityField; $this->identity = $identity; } /** * {@inheritdoc} */ public function getMessageKey(): string { return sprintf('Unable to load an user with property "%s" = "%s". If the user identity has changed, you must renew the token. Otherwise, verify that the "lexik_jwt_authentication.user_identity_field" config option is correctly set.', $this->userIdentityField, $this->identity); } }