umami/pages/logout.js

10 lines
200 B
JavaScript
Raw Normal View History

2020-08-05 07:45:05 +02:00
import { useEffect } from 'react';
2020-07-26 01:31:07 +02:00
export default function LogoutPage() {
2020-08-05 07:45:05 +02:00
useEffect(() => {
fetch('/api/auth/logout').then(() => (window.location.href = '/login'));
}, []);
2020-07-26 01:31:07 +02:00
2020-08-05 07:45:05 +02:00
return null;
2020-07-26 01:31:07 +02:00
}