blob: 76137daa7b61088e4f9a90ca7b3b74a8ef0221ab (
plain) (
blame)
1
2
3
4
5
6
7
8
|
export default () => (
fetch('/api/user/logout', {
method: 'POST',
})
.then(() => window.location.href = "/")
.then(() => console.log('it will logout'))
.catch(() => {})
);
|