vendor/lexik/jwt-authentication-bundle/Exception/ExpiredTokenException.php line 13

Open in your IDE?
  1. <?php
  2. namespace Lexik\Bundle\JWTAuthenticationBundle\Exception;
  3. use Symfony\Component\Security\Core\Exception\AuthenticationException;
  4. /**
  5.  * Exception that should be thrown from an authenticator during the authentication process
  6.  * if a token is expired.
  7.  *
  8.  * @author Robin Chalas <robin.chalas@gmail.com>
  9.  */
  10. class ExpiredTokenException extends AuthenticationException
  11. {
  12.     /**
  13.      * {@inheritdoc}
  14.      *
  15.      * @return string
  16.      */
  17.     public function getMessageKey(): string
  18.     {
  19.         return 'Expired JWT Token';
  20.     }
  21. }