1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-08-01 19:45:26 +02:00
planka/client/src/sagas/login/services/login.js

14 lines
394 B
JavaScript
Raw Normal View History

2019-08-31 04:07:25 +05:00
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());
}