Refactor
This commit is contained in:
parent
1fbd120404
commit
79dbeb6b7a
10 changed files with 52 additions and 27 deletions
|
|
@ -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 };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue