summaryrefslogtreecommitdiff
path: root/front/src/Authentication/LogoutPage.tsx
blob: a234985516a846cf62dbd1a7aeafb272cc32ee8f (plain)
1
2
3
4
5
6
7
8
9
10
11
import { useNavigate } from "react-router";

function LogoutPage() {
    const navigate = useNavigate();

    document.cookie = "X-AUTH-TOKEN=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
    navigate("/");
    return (<p> Click <a href="/"> here </a> if you were not redirected already </p>);
}

export default LogoutPage;