diff --git a/src/apis/auth/refresh.api.ts b/src/apis/auth/refresh.api.ts index 48c21ed..25aee3b 100644 --- a/src/apis/auth/refresh.api.ts +++ b/src/apis/auth/refresh.api.ts @@ -1,6 +1,5 @@ -import axios from 'axios'; - import { BASE_URI } from '@finnect/constants/URI'; +import { axiosClient } from '../AxiosClient'; interface AuthAPIRequest { status: number; @@ -9,7 +8,7 @@ interface AuthAPIRequest { export async function refresh(): Promise { try { - const response = await axios.post(`${BASE_URI}/users/reissue`, { + const response = await axiosClient.post(`${BASE_URI}/users/reissue`, { withCredentials: true, }); console.log(response); @@ -25,7 +24,7 @@ export async function refreshWorkSpace( workspaceId: number ): Promise { try { - const response = await axios.post( + const response = await axiosClient.post( `${BASE_URI}/users/reissue-workspace`, { workspaceId }, {