From f4e5b7006d66dddf550d7d6d90404e079ac8bd34 Mon Sep 17 00:00:00 2001 From: Dongpil Jo Date: Tue, 4 Jun 2024 16:20:19 +0900 Subject: [PATCH] =?UTF-8?q?hotfix:=20refresh=20api=20=ED=98=B8=EC=B6=9C=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apis/auth/refresh.api.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 }, {