Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return dispatch => {
loadingStart();
console.log("signing out");
Cache.removeItem("federatedInfo");
localStorage.clear();
Auth.signOut().then(e => {
loadingEnd();
dispatch(loggedOut());
})
}
}