summaryrefslogtreecommitdiff
path: root/front/src/Authentication/LogoutPage.tsx
diff options
context:
space:
mode:
authorphyscik <mynameisgennadiy@vk.com>2026-05-03 21:26:49 +0500
committerphyscik <mynameisgennadiy@vk.com>2026-05-03 21:26:49 +0500
commite02f7ee46876d32ca094c2b5cf3647248baf7645 (patch)
tree7f81450d2ccbcb4fea241a0925b45d9385ae7192 /front/src/Authentication/LogoutPage.tsx
parent533c04d9558bd0a575671c157ca42236f59a2c5a (diff)
Register page + logout
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;