Skip to content

Commit

Permalink
fix: refresh 토큰 만료 시 사용자에게 Alert를 보여주지 않도록 catch문 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
sangminlee98 committed Jul 15, 2024
1 parent 22c608a commit e3fd571
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/apis/reissue.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import axios, { AxiosError } from 'axios';
import {
ApiResponseType,
ApiResponseWithDataType,
} from '@/types/apiResponseType';
import axios from 'axios';
import { ApiResponseWithDataType } from '@/types/apiResponseType';

export const reissue = async () => {
try {
Expand All @@ -16,6 +13,6 @@ export const reissue = async () => {
);
return data;
} catch (err) {
alert((err as AxiosError<ApiResponseType>).response?.data.message);
console.error(err);
}
};

0 comments on commit e3fd571

Please sign in to comment.