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