15 lines
482 B
JavaScript
15 lines
482 B
JavaScript
import { all, takeLatest } from 'redux-saga/effects';
|
|
|
|
import { authenticateService, clearAuthenticationErrorService } from '../services';
|
|
import EntryActionTypes from '../../../constants/EntryActionTypes';
|
|
|
|
export default function* () {
|
|
yield all([
|
|
takeLatest(EntryActionTypes.AUTHENTICATE, ({ payload: { data } }) => authenticateService(data)),
|
|
takeLatest(
|
|
EntryActionTypes.AUTHENTICATION_ERROR_CLEAR,
|
|
() => clearAuthenticationErrorService(),
|
|
),
|
|
]);
|
|
}
|