Skip to content

Commit

Permalink
Revert " refresh api 호출 수정"
Browse files Browse the repository at this point in the history
This reverts commit 75d5b76.
  • Loading branch information
eastfilmm committed Jun 4, 2024
1 parent 75d5b76 commit a6ba95a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/apis/auth/refresh.api.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import axios from 'axios';

import { BASE_URI } from '@finnect/constants/URI';
import { axiosClient } from '../AxiosClient';

interface AuthAPIRequest {
status: number;
Expand All @@ -8,7 +9,7 @@ interface AuthAPIRequest {

export async function refresh(): Promise<AuthAPIRequest> {
try {
const response = await axiosClient.post(`${BASE_URI}/users/reissue`, {
const response = await axios.post(`${BASE_URI}/users/reissue`, {
withCredentials: true,
});
console.log(response);
Expand All @@ -24,7 +25,7 @@ export async function refreshWorkSpace(
workspaceId: number
): Promise<AuthAPIRequest> {
try {
const response = await axiosClient.post(
const response = await axios.post(
`${BASE_URI}/users/reissue-workspace`,
{ workspaceId },
{
Expand Down

0 comments on commit a6ba95a

Please sign in to comment.