diff --git a/src/redux/features/account/auth/authThunk.ts b/src/redux/features/account/auth/authThunk.ts index 7e3dcb99..8eea3682 100644 --- a/src/redux/features/account/auth/authThunk.ts +++ b/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); } } );