Skip to content

Commit

Permalink
chore :: 로그인으로 이동 시 locarstorage초기화
Browse files Browse the repository at this point in the history
  • Loading branch information
hyuna committed Aug 4, 2024
1 parent a54f317 commit fa0ee74
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,11 @@ const Login = () => {
router.push("/login");
}
};

useEffect(() => {
cookie.remove("access_token");
cookie.remove("refresh_token");
localStorage.clear();
}, []);

const BtnColor = () => {
Expand Down

0 comments on commit fa0ee74

Please sign in to comment.