Fetched User data on Login, modified PrivateRoute logic

This commit is contained in:
Alexander Wong
2017-09-03 16:24:43 -06:00
parent 4cadf5df3a
commit e69773ac8e
15 changed files with 295 additions and 28 deletions
+7
View File
@@ -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);
}