Skip to content

Commit

Permalink
refactor: 로그아웃 시간 단축
Browse files Browse the repository at this point in the history
  • Loading branch information
junghaesung79 committed Jun 26, 2024
1 parent 6387376 commit ecf68cc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/query/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ export const useLogout = () => {
onSuccess: async () => {
sessionStorage.removeItem('access_token');
localStorage.removeItem('refresh_token');
await queryClient.invalidateQueries({ queryKey: userKeys.all });
queryClient.clear();
navigate('/login');
setPrevPath('/login');
Expand Down

0 comments on commit ecf68cc

Please sign in to comment.