Fetched User data on Login, modified PrivateRoute logic
This commit is contained in:
@@ -17,6 +17,12 @@ import {
|
||||
forgotPasswordFlow,
|
||||
resetPasswordFlow,
|
||||
} from "./auth.sagas";
|
||||
import {
|
||||
SEND_GET_SELF_USER_REQUEST
|
||||
} from "../constants/user.constants";
|
||||
import {
|
||||
getSelfUserFlow
|
||||
} from "./user.sagas";
|
||||
|
||||
export default function* rootSaga() {
|
||||
yield takeLatest(SEND_REGISTER_REQUEST, registerUserFlow);
|
||||
@@ -26,4 +32,5 @@ export default function* rootSaga() {
|
||||
yield takeLatest(SEND_CHANGE_PASSWORD_REQUEST, changePasswordFlow);
|
||||
yield takeLatest(SEND_FORGOT_PASSWORD_REQUEST, forgotPasswordFlow);
|
||||
yield takeLatest(SEND_RESET_PASSWORD_REQUEST, resetPasswordFlow);
|
||||
yield takeLatest(SEND_GET_SELF_USER_REQUEST, getSelfUserFlow);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user