import { callApi, HTTP } from "../tools"; import { IFetchLoginRequest, IFetchLoginResponse, IFetchRefreshResponse, } from "./types"; const fetchLoginApi = async ( request: IFetchLoginRequest, ): Promise => { return await callApi(HTTP.POST, `auth/login`, request, true); }; const fetchRefreshApi = async (): Promise => { return await callApi(HTTP.GET, `auth/refresh`, undefined, true); }; export { fetchLoginApi, fetchRefreshApi };