public function refresh(ResponseFactory $response, JWTAuth $auth)
    {
        try {
            $token = $auth->parseToken()->refresh();
        } catch (JWTException $e) {
            throw new UnauthorizedHttpException('jwt-auth', $e->getMessage());
        }

        return $response->json(['token' => $token]);
    }