mirror of
https://github.com/plankanban/planka.git
synced 2025-12-18 01:11:13 +03:00
17 lines
515 B
JavaScript
Executable File
17 lines
515 B
JavaScript
Executable File
import { all, call, cancel, fork, take } from 'redux-saga/effects';
|
|
|
|
import watchers from './watchers';
|
|
import services from './services';
|
|
import ActionTypes from '../../constants/ActionTypes';
|
|
|
|
export default function* loginSaga() {
|
|
const watcherTasks = yield all(watchers.map((watcher) => fork(watcher)));
|
|
|
|
yield fork(services.initializeLogin);
|
|
|
|
yield take([ActionTypes.AUTHENTICATE__SUCCESS, ActionTypes.USING_OIDC_AUTHENTICATE__SUCCESS]);
|
|
|
|
yield cancel(watcherTasks);
|
|
yield call(services.goToRoot);
|
|
}
|