|
|
@ -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); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
); |
|
|
|
); |
|
|
|