Skip to content

Commit c03dfb2

Browse files
committed
fix: add handling for ACCESS_TOKEN_EXPIRED error code in isNotAuthErrorResponse function
1 parent 1d33d7d commit c03dfb2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

apps/ticket/src/shared/types/axioxError.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export function isNotAuthErrorResponse(error: unknown): error is AxiosErrorRespo
2828
return (
2929
isAxiosErrorResponse(error) &&
3030
(error.response?.data.code === ERROR_CODE.LOGIN_REQUIRED ||
31+
error.response?.data.code === ERROR_CODE.ACCESS_TOKEN_EXPIRED ||
3132
error.response?.data.code === ERROR_CODE.NO_ACCESS_TOKEN ||
3233
error.response?.data.code === ERROR_CODE.REFRESH_TOKEN_EXPIRED)
3334
);

0 commit comments

Comments
 (0)