mirror of
https://github.com/aykhans/slash-e.git
synced 2025-07-01 11:27:50 +00:00
chore: update auth service
This commit is contained in:
@ -44,7 +44,7 @@ const SignIn: React.FC = () => {
|
||||
|
||||
try {
|
||||
actionBtnLoadingState.setLoading();
|
||||
const { user } = await authServiceClient.signIn({ email, password });
|
||||
const user = await authServiceClient.signIn({ email, password });
|
||||
if (user) {
|
||||
userStore.setCurrentUserId(user.id);
|
||||
await userStore.fetchCurrentUser();
|
||||
|
@ -51,7 +51,7 @@ const SignUp: React.FC = () => {
|
||||
|
||||
try {
|
||||
actionBtnLoadingState.setLoading();
|
||||
const { user } = await authServiceClient.signUp({
|
||||
const user = await authServiceClient.signUp({
|
||||
email,
|
||||
nickname,
|
||||
password,
|
||||
|
Reference in New Issue
Block a user