Browse Source

로그인 이슈 수정

master
김장현 3 months ago
parent
commit
e944d9a64c
  1. 2
      src/redux/features/account/auth/authThunk.ts

2
src/redux/features/account/auth/authThunk.ts

@ -58,6 +58,7 @@ export const setLogin = createAsyncThunk(
const { data: user }: { data: ICheckAuthencationRs } = await axios.get(
`api/acnt/jwt/profile/${decodedToken.cstmrSno}`
);
return { isLogin: true, user };
} catch (error: any) {
thunkAPI.dispatch(
@ -66,6 +67,7 @@ export const setLogin = createAsyncThunk(
body: error
})
);
return thunkAPI.rejectWithValue(error);
}
}
);

Loading…
Cancel
Save