diff --git a/src/api/hooks/useLogin.ts b/src/api/hooks/useLogin.ts deleted file mode 100644 index 16f7536..0000000 --- a/src/api/hooks/useLogin.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { useQuery } from 'react-query'; -import instance from 'shared/axios'; - -export const useLogin = (codeValue: string) => { - return useQuery( - ['login'], - async () => await instance.post(`/api/user/kakao?code=${codeValue}`), - { - onSuccess(data) { - return data; - }, - } - ); -};