From 7ed00f21456a24c03b7053d0701d3850184df45f Mon Sep 17 00:00:00 2001 From: Tim Pechersky Date: Mon, 2 Aug 2021 23:33:10 +0800 Subject: [PATCH] fix signup flow --- frontend/src/core/hooks/useSignUp.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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);