tymondesigns/jwt-auth · error · Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException
{JWTException message}
Error message
{JWTException message} What it means
Error "{JWTException message}" thrown in tymondesigns/jwt-auth.
Source
Thrown at src/Http/Middleware/RefreshToken.php:37
class RefreshToken extends BaseMiddleware
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*
* @throws \Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException
*/
public function handle($request, Closure $next)
{
$this->checkForToken($request);
try {
$token = $this->auth->parseToken()->refresh();
} catch (JWTException $e) {
throw new UnauthorizedHttpException('jwt-auth', $e->getMessage(), $e, $e->getCode());
}
$response = $next($request);
// Send the refreshed token back to the client.
return $this->setAuthenticationHeader($response, $token);
}
}
View on GitHub (pinned to 6c70930a92)
When it happens
Trigger: Thrown at src/Http/Middleware/RefreshToken.php:37 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/7f181c37ccc2b304.
Report an issue: GitHub.