import { getAuthHTTPClient } from "../../communication/http-client/index.js";
const getUser = async ({
  userName,
  isConsumerUser
}) => {
  const URL = isConsumerUser ? "/iam/v1/users/me" : `/encompass/v1/users/${userName}`;
  const { data } = await getAuthHTTPClient().get(URL);
  return data;
};
export {
  getUser
};
