Skip to content

Commit

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

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

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

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

0 comments on commit f4e5b70

Please sign in to comment.