egirlskey/src/web/app/common/scripts/signout.ts
2017-11-23 05:43:00 +09:00

7 lines
195 B
TypeScript

declare const _HOST_: string;
export default () => {
localStorage.removeItem('me');
document.cookie = `i=; domain=.${_HOST_}; expires=Thu, 01 Jan 1970 00:00:01 GMT;`;
location.href = '/';
};