src/Exceptions/ApiExceptionHandler.php
private function handleUnauthorized(UnauthorizedHttpException $e)
    {
        if ($e->getPrevious() instanceof TokenExpiredException) {
            $e = new UnauthorizedHttpException('JWTAuth', $e->getMessage(), $e, 498);
        }
        return $this->handle($e);
    }
private function handleUnauthorized(UnauthorizedHttpException $e)
    {
        if ($e->getPrevious() instanceof TokenExpiredException) {
            $e = new UnauthorizedHttpException('JWTAuth', $e->getMessage(), $e, 498);
        }
        return $this->handle($e);
    }
Add special handling for expired JWT Token.
According to HTTP specification, we must return code 401, but allow client application
determine, that it should refresh auth token by additional flag:
code = 498
in body response

@param UnauthorizedHttpException $e Original exception to wrap and handle
@return Response