From e02f7ee46876d32ca094c2b5cf3647248baf7645 Mon Sep 17 00:00:00 2001 From: physcik Date: Sun, 3 May 2026 21:26:49 +0500 Subject: Register page + logout --- front/src/Authentication/LogoutPage.tsx | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 front/src/Authentication/LogoutPage.tsx (limited to 'front/src/Authentication/LogoutPage.tsx') 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 (

Click here if you were not redirected already

); +} + +export default LogoutPage; -- cgit v1.3