jormungandr-bite/src/web/app/common/scripts/signout.js

8 lines
201 B
JavaScript
Raw Normal View History

2017-03-18 05:05:11 -06:00
import CONFIG from './config';
2017-02-21 12:19:53 -07:00
2017-03-18 05:05:11 -06:00
export default () => {
2017-02-17 21:13:43 -07:00
localStorage.removeItem('me');
document.cookie = `i=; domain=.${CONFIG.host}; expires=Thu, 01 Jan 1970 00:00:01 GMT;`;
location.href = '/';
};