kopia lustrzana https://github.com/bugout-dev/moonstream
fix signup flow
rodzic
1a1a7eed52
commit
7ed00f2145
|
@ -18,10 +18,7 @@ const useSignUp = (source) => {
|
||||||
isSuccess,
|
isSuccess,
|
||||||
} = useMutation(AuthService.register(), {
|
} = useMutation(AuthService.register(), {
|
||||||
onSuccess: (response) => {
|
onSuccess: (response) => {
|
||||||
localStorage.setItem(
|
localStorage.setItem("MOONSTREAM_ACCESS_TOKEN", response.data.id);
|
||||||
"MOONSTREAM_ACCESS_TOKEN",
|
|
||||||
response.data.access_token
|
|
||||||
);
|
|
||||||
const invite_code = window.sessionStorage.getItem("invite_code");
|
const invite_code = window.sessionStorage.getItem("invite_code");
|
||||||
if (invite_code) {
|
if (invite_code) {
|
||||||
inviteAccept(invite_code);
|
inviteAccept(invite_code);
|
||||||
|
|
Ładowanie…
Reference in New Issue