({ payload }, { call, put })
| 44 | return false; |
| 45 | }, |
| 46 | * logout({ payload }, { call, put }) { |
| 47 | // const { redirect } = getPageQuery(); |
| 48 | yield call(logout) |
| 49 | yield put({ |
| 50 | type: 'changeLoginStatus', |
| 51 | payload: {}, |
| 52 | }); |
| 53 | yield put({ |
| 54 | type: 'user/saveCurrentUser', |
| 55 | payload: {}, |
| 56 | }); |
| 57 | localStorage.setItem('currentUser', '{}') |
| 58 | localStorage.setItem('userRole', '') |
| 59 | |
| 60 | const { origin } = window.location; |
| 61 | // window.location.href = localStorage.getItem('loginOutUrl') |
| 62 | // window.location.href = `${baseUrl}${severUrl}/auth/login`; |
| 63 | }, |
| 64 | }, |
| 65 | |
| 66 | reducers: { |
nothing calls this directly
no outgoing calls
no test coverage detected