<?php

namespace Lexik\Bundle\JWTAuthenticationBundle\Exception;

use Symfony\Component\Security\Core\Exception\AuthenticationException;

/**
 * Exception that should be thrown from an authenticator during the authentication process
 * if a token is expired.
 *
 * @author Robin Chalas <robin.chalas@gmail.com>
 */
class ExpiredTokenException extends AuthenticationException
{
    /**
     * {@inheritdoc}
     */
    public function getMessageKey(): string
    {
        return 'Expired JWT Token';
    }
}
