import { GiteaUnauthorizedError } from "../../util/gitea"; import { put } from 'redux-saga/effects'; export function* failuresSaga(action) { const err = action.error; if (err instanceof GiteaUnauthorizedError) { yield put(logout()); } }