Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
dispatch(deis.getUsers()).then(({ error }) => {
if (error) {
this.props.dispatch(routeActions.push('/dash'))
}
})
}
return (dispatch, getState) => {
storage.deleteKey('@auth')
dispatch({
type: LOGOUT
})
dispatch(routeActions.push('/login'))
}
}