Skip to content

Commit

Permalink
fix: delete token from local storage when fail reissue
Browse files Browse the repository at this point in the history
  • Loading branch information
WONYOUNG-HC committed Dec 9, 2024
1 parent a02cdee commit cf3a97e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ api.interceptors.response.use(

return api(config);
} catch (err) {
localStorage.clear();
localStorage.removeItem('token');
window.location.replace('/');
} finally {
isRefreshing = false;
Expand Down

0 comments on commit cf3a97e

Please sign in to comment.