diff --git a/src/hooks/queries/user/useLogin.tsx b/src/hooks/queries/user/useLogin.tsx index 9f736d4a..2cedde2e 100644 --- a/src/hooks/queries/user/useLogin.tsx +++ b/src/hooks/queries/user/useLogin.tsx @@ -27,9 +27,9 @@ export const useLogin = () => { console.log('실행'); fetchAuth(code).then((response: LoginResponseType) => { const data = response.data; - const JWT = data.memberToken.accessToken; + const JWT = data.memberToken; if (data) { - localStorage.setItem('EXIT_LOGIN_TOKEN', JWT); + //localStorage.setItem('EXIT_LOGIN_TOKEN', JWT); console.log(data); console.log(JWT); }