From a6ba95ace3cf53aabf16fe063f88cea2e23bb80a Mon Sep 17 00:00:00 2001 From: Dongpil Jo Date: Tue, 4 Jun 2024 16:19:27 +0900 Subject: [PATCH] =?UTF-8?q?Revert=20"=20refresh=20api=20=ED=98=B8=EC=B6=9C?= =?UTF-8?q?=20=EC=88=98=EC=A0=95"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 75d5b76f2fa8e7fca8d78b5e5f26b37028f791c0. --- src/apis/auth/refresh.api.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/apis/auth/refresh.api.ts b/src/apis/auth/refresh.api.ts index 25aee3b..48c21ed 100644 --- a/src/apis/auth/refresh.api.ts +++ b/src/apis/auth/refresh.api.ts @@ -1,5 +1,6 @@ +import axios from 'axios'; + import { BASE_URI } from '@finnect/constants/URI'; -import { axiosClient } from '../AxiosClient'; interface AuthAPIRequest { status: number; @@ -8,7 +9,7 @@ interface AuthAPIRequest { export async function refresh(): Promise { try { - const response = await axiosClient.post(`${BASE_URI}/users/reissue`, { + const response = await axios.post(`${BASE_URI}/users/reissue`, { withCredentials: true, }); console.log(response); @@ -24,7 +25,7 @@ export async function refreshWorkSpace( workspaceId: number ): Promise { try { - const response = await axiosClient.post( + const response = await axios.post( `${BASE_URI}/users/reissue-workspace`, { workspaceId }, {