<?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}
     *
     * @return string
     */
    public function getMessageKey()
    {
        return 'Expired JWT Token';
    }
}
