kopia lustrzana https://github.com/bugout-dev/moonstream
fix signup flow
rodzic
1a1a7eed52
commit
7ed00f2145
|
@ -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);
|
||||
|
|
Ładowanie…
Reference in New Issue