Guest User

Untitled

a guest
Oct 18th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. import createHistory from 'history/createBrowserHistory';
  2. export default createHistory();
  3.  
  4. import history from '../navigation/History';
  5.  
  6. export const onLogout = () => {
  7. Accounts.logout();
  8. history.push('/');
  9. return {
  10. type: AUTH_ON_LOGOUT,
  11. payload: {}
  12. };
Add Comment
Please, Sign In to add comment