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

Loading…
Cancel
Save