tymondesigns/jwt-auth · error · Tymon\JWTAuth\Exceptions\TokenBlacklistedException
The token has been blacklisted
Error message
The token has been blacklisted
What it means
Error "The token has been blacklisted" thrown in tymondesigns/jwt-auth.
Source
Thrown at src/Manager.php:106
* Decode a Token and return the Payload.
*
* @param \Tymon\JWTAuth\Token $token
* @param bool $checkBlacklist
* @return \Tymon\JWTAuth\Payload
*
* @throws \Tymon\JWTAuth\Exceptions\TokenBlacklistedException
*/
public function decode(Token $token, $checkBlacklist = true)
{
$payloadArray = $this->provider->decode($token->get());
$payload = $this->payloadFactory
->setRefreshFlow($this->refreshFlow)
->customClaims($payloadArray)
->make();
if ($checkBlacklist && $this->blacklistEnabled && $this->blacklist->has($payload)) {
throw new TokenBlacklistedException('The token has been blacklisted');
}
return $payload;
}
/**
* Refresh a Token and return a new Token.
*
* @param \Tymon\JWTAuth\Token $token
* @param bool $forceForever
* @param bool $resetClaims
* @return \Tymon\JWTAuth\Token
*/
public function refresh(Token $token, $forceForever = false, $resetClaims = false)
{
$this->setRefreshFlow();
$claims = $this->buildRefreshClaims($this->decode($token));View on GitHub (pinned to 6c70930a92)
When it happens
Trigger: Thrown at src/Manager.php:106 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of tymondesigns/jwt-auth@6c70930a92 (2026-08-21).
Data as JSON: /api/errors/52a3f6c9c1cec4e9.
Report an issue: GitHub.