Skip to content

Commit

Permalink
hotfix: reload 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
pepperdad committed Dec 18, 2024
1 parent 40a9ca9 commit fbaf8c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/apis/domains/users/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ export const usePostKakaoLogin = () => {
mutationFn: (authCode: string) => postKakaoLogin(authCode),
onSuccess: (response) => {
if (response) {
console.log("login success", response);

const userData = response;

if (userData) {
Expand Down
4 changes: 2 additions & 2 deletions src/hooks/useTokenRefresher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default function TokenRefresher() {
// 기존에 존재하던 유저 role, refreshToken 유무로 임시로 토큰 제거 후 리로드
localStorage.clear();
openAlert({ title: "다시 로그인 해주세요." });
window.location.reload();
// window.location.reload();
return <></>;
}
}
Expand Down Expand Up @@ -50,7 +50,7 @@ export default function TokenRefresher() {
localStorage.clear();
navigate("/main");
openAlert({ title: "장시간 미활동으로 인해 \n자동으로 로그아웃 되었습니다." });
window.location.reload();
// window.location.reload();
}
} else if (status === 500) {
openAlert({
Expand Down

0 comments on commit fbaf8c3

Please sign in to comment.