This commit is contained in:
Aslan 2026-01-07 17:42:16 -05:00
parent 1fbd120404
commit 79dbeb6b7a
10 changed files with 52 additions and 27 deletions

View file

@ -8,11 +8,11 @@ import {
const fetchLoginApi = async (
request: IFetchLoginRequest,
): Promise<IFetchLoginResponse> => {
return await callApi(HTTP.POST, `auth/login`, request);
return await callApi(HTTP.POST, `auth/login`, request, true);
};
const fetchRefreshApi = async (): Promise<IFetchRefreshResponse> => {
return await callApi(HTTP.GET_REFRESH, `auth/refresh`);
return await callApi(HTTP.GET, `auth/refresh`, undefined, true);
};
export { fetchLoginApi, fetchRefreshApi };