Skip to content

Commit

Permalink
hotfix: 회원 탈퇴 API 주석
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-dong-su committed Apr 8, 2024
1 parent 830c80e commit 7043a6e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function DeleteModal({ onCancelClick }: DeleteModalProps) {
const { t } = useTranslation('profile');
const { mutate } = usePatchSignOut();
const handleDeleteClick = () => {
mutate();
// mutate();
open(() => <DeleteCompleteModal />);
};

Expand Down
4 changes: 2 additions & 2 deletions packages/web/src/hooks/token/useLogout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { removeToken } from '@/utils/auth/tokenController';
export default function useLogout() {
const router = useRouter();

const logout = () => {
removeToken();
const logout = async () => {
await removeToken();

router.push('/join');
};
Expand Down
2 changes: 1 addition & 1 deletion packages/web/src/utils/auth/tokenController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const hasToken = () => {
return accessToken || refreshToken;
};

export const removeToken = () => {
export const removeToken = async () => {
// setTokenAtCookie({ accessToken: '', refreshToken: '', userId: 0 });
removeLocalCookie(AUTH_KEYS.accessToken);
removeLocalCookie(AUTH_KEYS.refreshToken);
Expand Down

0 comments on commit 7043a6e

Please sign in to comment.