Skip to content

Commit

Permalink
Update github repo package
Browse files Browse the repository at this point in the history
  • Loading branch information
underpostnet committed Dec 31, 2024
1 parent da51d8b commit 652d5fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/client/components/core/Auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ const Auth = {
},
};
})();
const { status, data } = result;
const { status, data, message } = result;
if (status === 'success') {
localStorage.setItem('jwt', token);
await LogIn.Trigger({ user: data.user });
await Account.updateForm(data.user);
return { user: data.user };
}
} else throw new Error(message);
}

// anon guest session
Expand All @@ -91,7 +91,8 @@ const Auth = {
}

this.setGuestToken(guestToken);
let { data } = await UserService.get({ id: 'auth' });
let { data, status, message } = await UserService.get({ id: 'auth' });
if (status === 'error') throw new Error(message);
await Account.updateForm(data);
return { user: data };
} catch (error) {
Expand Down
2 changes: 1 addition & 1 deletion src/server/valkey.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const valkeyClientFactory = async () => {

const getValkeyObject = async (key = '') => {
if (!valkeyEnabled) {
logger.warn(disableValkeyErrorMessage + ' get: ', key);
logger.warn(disableValkeyErrorMessage + ' get', key);
return null;
}
const object = await valkey.get(key);
Expand Down

0 comments on commit 652d5fb

Please sign in to comment.