Skip to content

Instantly share code, notes, and snippets.

@OleksivO
Created January 16, 2019 20:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save OleksivO/625cd6ee3df6557886c1030bda78b430 to your computer and use it in GitHub Desktop.
Save OleksivO/625cd6ee3df6557886c1030bda78b430 to your computer and use it in GitHub Desktop.
the description for this gist
import {delay} from 'redux-saga';
import {put, call, takeEvery} from 'redux-saga/effects';
import axios from "axios";
import * as actions from '../actions/authorization'
export default function* watchAuthSaga() {
yield takeEvery('AUTH_USER', authUser);
yield takeEvery('AUTH_INITIATE_LOGOUT', logout);
yield takeEvery('AUTH_CHECK_TIMEOUT', checkAuthTimeout);
}
function* authUser(action) {...}
function* checkAuthTimeout(action) {...}
function* logout(action) {...}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment