10 lines
273 B
TypeScript
10 lines
273 B
TypeScript
import { GiteaUnauthorizedError } from "../../util/gitea";
|
|
import { put } from 'redux-saga/effects';
|
|
import { logout } from '../actions/logout';
|
|
|
|
export function* failuresSaga(action) {
|
|
if (action.error instanceof GiteaUnauthorizedError) {
|
|
yield put(logout());
|
|
}
|
|
}
|