Initial commit
This commit is contained in:
14
client/src/sagas/login/services/login.js
Normal file
14
client/src/sagas/login/services/login.js
Normal file
@@ -0,0 +1,14 @@
|
||||
import { call, put } from 'redux-saga/effects';
|
||||
|
||||
import { authenticateRequest } from '../requests';
|
||||
import { authenticate, clearAuthenticationError } from '../../../actions';
|
||||
|
||||
export function* authenticateService(data) {
|
||||
yield put(authenticate(data));
|
||||
|
||||
yield call(authenticateRequest, data);
|
||||
}
|
||||
|
||||
export function* clearAuthenticationErrorService() {
|
||||
yield put(clearAuthenticationError());
|
||||
}
|
||||
Reference in New Issue
Block a user