Skip to content

Commit

Permalink
Merge pull request #173 from keemsebin/fix#172
Browse files Browse the repository at this point in the history
  • Loading branch information
keemsebin authored Sep 13, 2024
2 parents 38a03d4 + d88e0e8 commit 2dfcd6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/apis/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ import {
import { Score, ScoreDetail } from '@/types/score';

export type ErrorType = {
code: number;
status: number;
message: string;
};

Expand Down Expand Up @@ -530,7 +530,7 @@ function fulfilledResponse(res: AxiosResponse) {
}
function rejectedResponse(error: AxiosError<ErrorType>) {
if (
error.response?.data?.code === 401 &&
error.response?.data?.status === 401 &&
error.response?.data?.message == '유효하지 않은 토큰입니다.'
) {
return expirationToken(error);
Expand Down

0 comments on commit 2dfcd6c

Please sign in to comment.