{"record":{"id":"7f181c37ccc2b304","repo":"tymondesigns/jwt-auth","slug":"jwtexception-message-7f181c","errorCode":null,"errorMessage":"{JWTException message}","messagePattern":"\\{JWTException message\\}","errorType":"http","errorClass":"Symfony\\Component\\HttpKernel\\Exception\\UnauthorizedHttpException","httpStatus":401,"severity":"error","filePath":"src/Http/Middleware/RefreshToken.php","lineNumber":37,"sourceCode":"class RefreshToken extends BaseMiddleware\n{\n    /**\n     * Handle an incoming request.\n     *\n     * @param  \\Illuminate\\Http\\Request  $request\n     * @param  \\Closure  $next\n     * @return mixed\n     *\n     * @throws \\Symfony\\Component\\HttpKernel\\Exception\\UnauthorizedHttpException\n     */\n    public function handle($request, Closure $next)\n    {\n        $this->checkForToken($request);\n\n        try {\n            $token = $this->auth->parseToken()->refresh();\n        } catch (JWTException $e) {\n            throw new UnauthorizedHttpException('jwt-auth', $e->getMessage(), $e, $e->getCode());\n        }\n\n        $response = $next($request);\n\n        // Send the refreshed token back to the client.\n        return $this->setAuthenticationHeader($response, $token);\n    }\n}\n","sourceCodeStart":19,"sourceCodeEnd":46,"githubUrl":"https://github.com/tymondesigns/jwt-auth/blob/6c70930a92710d97e8e52b182fca2176097f33be/src/Http/Middleware/RefreshToken.php#L19-L46","documentation":"Error \"{JWTException message}\" thrown in tymondesigns/jwt-auth.","triggerScenarios":"Thrown at src/Http/Middleware/RefreshToken.php:37 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6c70930a92710d97e8e52b182fca2176097f33be","analyzedAt":"2026-08-21T02:16:37.040Z","schemaVersion":2},"datasetVersion":"2026-08-21T03:17:12.404Z"}