Skip to content

Commit

Permalink
fix: 사용자 쿠키 삭제시 미인증 사용자 처리 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
JaeHongDev committed Jul 8, 2024
1 parent 5efb475 commit 75b90a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/api/Interceptors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ export const handleTokenError = async(error: AxiosError<ErrorResponseData>) => {
}

if (
status === 400 && (data.code >= 10000 && data.code <= 10006)
(status === 401 || status === 400) &&
(data.code >= 10000 && data.code <= 10007)
) {
localStorage.removeItem(TOKEN.ACCESS);
window.location.href = PATH.AUTH;
Expand Down

0 comments on commit 75b90a7

Please sign in to comment.