From e944d9a64c1a6c085b2714810cc06511a03dce39 Mon Sep 17 00:00:00 2001 From: kimjh2369 Date: Thu, 27 Jun 2024 17:31:56 +0900 Subject: [PATCH] =?UTF-8?q?=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=EC=9D=B4?= =?UTF-8?q?=EC=8A=88=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/redux/features/account/auth/authThunk.ts | 2 ++ 1 file changed, 2 insertions(+) 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); } } );