summaryrefslogtreecommitdiff
path: root/front/src/Authentication/LogoutPage.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'front/src/Authentication/LogoutPage.tsx')
-rw-r--r--front/src/Authentication/LogoutPage.tsx11
1 files changed, 11 insertions, 0 deletions
diff --git a/front/src/Authentication/LogoutPage.tsx b/front/src/Authentication/LogoutPage.tsx
new file mode 100644
index 0000000..a234985
--- /dev/null
+++ b/front/src/Authentication/LogoutPage.tsx
@@ -0,0 +1,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;