Skip to content

Commit

Permalink
fix: loginId전역관리 오류 수정 (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
yeyounging authored Jun 12, 2024
1 parent 4af7e65 commit a9e3c92
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/app/(auth)/auth/api/queries.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { getQueryClient } from '@/app/lib';
import { useMutation } from '@tanstack/react-query';
import { ACCESS_TOKEN } from '@/constants';
import Cookies from 'js-cookie';
Expand All @@ -15,7 +14,6 @@ export const usePostLogin = (code: string) => {
onSuccess: ({ result: { accessToken, blogId } }) => {
Cookies.set(ACCESS_TOKEN, accessToken);
setLoginId(blogId);
getQueryClient().invalidateQueries({ queryKey: ['login'] });
},
});
};

0 comments on commit a9e3c92

Please sign in to comment.