1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-24 07:39:44 +02:00
planka/client/src/sagas/index.js

15 lines
342 B
JavaScript
Executable file

import { call } from 'redux-saga/effects';
import loginSaga from './login';
import coreSaga from './core';
import { getAccessToken } from '../utils/access-token-storage';
export default function* rootSaga() {
const accessToken = yield call(getAccessToken);
if (!accessToken) {
yield call(loginSaga);
}
yield call(coreSaga);
}