mirror of
https://github.com/plankanban/planka.git
synced 2025-08-01 19:45:26 +02:00
14 lines
394 B
JavaScript
14 lines
394 B
JavaScript
|
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());
|
||
|
}
|