Created
January 16, 2019 20:00
-
-
Save OleksivO/625cd6ee3df6557886c1030bda78b430 to your computer and use it in GitHub Desktop.
the description for this gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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