Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import createHistory from 'history/createBrowserHistory';
- export default createHistory();
- import history from '../navigation/History';
- export const onLogout = () => {
- Accounts.logout();
- history.push('/');
- return {
- type: AUTH_ON_LOGOUT,
- payload: {}
- };
Add Comment
Please, Sign In to add comment