diff --git a/frontend/src/core/hooks/useSignUp.js b/frontend/src/core/hooks/useSignUp.js index 1419ba16..dc5ab54e 100644 --- a/frontend/src/core/hooks/useSignUp.js +++ b/frontend/src/core/hooks/useSignUp.js @@ -18,10 +18,7 @@ const useSignUp = (source) => { isSuccess, } = useMutation(AuthService.register(), { onSuccess: (response) => { - localStorage.setItem( - "MOONSTREAM_ACCESS_TOKEN", - response.data.access_token - ); + localStorage.setItem("MOONSTREAM_ACCESS_TOKEN", response.data.id); const invite_code = window.sessionStorage.getItem("invite_code"); if (invite_code) { inviteAccept(invite_code);