From cf3a97eaa444cf98f671519a1b8457a097d9fd06 Mon Sep 17 00:00:00 2001 From: WONYOUNG-HC Date: Tue, 10 Dec 2024 03:46:28 +0900 Subject: [PATCH] fix: delete token from local storage when fail reissue --- src/api/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/api.ts b/src/api/api.ts index b4b89c98..6a98749a 100644 --- a/src/api/api.ts +++ b/src/api/api.ts @@ -46,7 +46,7 @@ api.interceptors.response.use( return api(config); } catch (err) { - localStorage.clear(); + localStorage.removeItem('token'); window.location.replace('/'); } finally { isRefreshing = false;