diff --git a/src/app/(auth)/auth/api/queries.ts b/src/app/(auth)/auth/api/queries.ts index d6047c7..ff6555d 100644 --- a/src/app/(auth)/auth/api/queries.ts +++ b/src/app/(auth)/auth/api/queries.ts @@ -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'; @@ -15,7 +14,6 @@ export const usePostLogin = (code: string) => { onSuccess: ({ result: { accessToken, blogId } }) => { Cookies.set(ACCESS_TOKEN, accessToken); setLoginId(blogId); - getQueryClient().invalidateQueries({ queryKey: ['login'] }); }, }); };