You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.1 KiB
36 lines
1.1 KiB
import { takeLatest } from "redux-saga/effects"; |
|
import { |
|
SEND_REGISTER_REQUEST, |
|
SEND_EMAIL_VERIFICATION_REQUEST, |
|
SEND_LOGIN_REQUEST, |
|
SEND_LOGOUT_REQUEST, |
|
SEND_CHANGE_PASSWORD_REQUEST, |
|
SEND_FORGOT_PASSWORD_REQUEST, |
|
SEND_RESET_PASSWORD_REQUEST |
|
} from "../constants/auth.constants"; |
|
import { |
|
registerUserFlow, |
|
verifyEmailFlow, |
|
loginUserFlow, |
|
logoutUserFlow, |
|
changePasswordFlow, |
|
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); |
|
yield takeLatest(SEND_EMAIL_VERIFICATION_REQUEST, verifyEmailFlow); |
|
yield takeLatest(SEND_LOGIN_REQUEST, loginUserFlow); |
|
yield takeLatest(SEND_LOGOUT_REQUEST, logoutUserFlow); |
|
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); |
|
}
|
|
|