From 6d48dab0fd507205ebd6dd8da75c55d45c7c3f23 Mon Sep 17 00:00:00 2001 From: Shwetas Dhake Date: Fri, 7 Aug 2026 14:57:21 +0530 Subject: [PATCH] Redirect to /auth instead of nonexistent /login route --- frontend/src/components/Matchmaking.tsx | 4 ++-- frontend/src/context/authContext.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/Matchmaking.tsx b/frontend/src/components/Matchmaking.tsx index aa7f4b5b..c642157e 100644 --- a/frontend/src/components/Matchmaking.tsx +++ b/frontend/src/components/Matchmaking.tsx @@ -40,14 +40,14 @@ const Matchmaking: React.FC = () => { } if (!user) { - navigate('/login'); + navigate('/auth'); return; } // Get token from localStorage const token = localStorage.getItem('token'); if (!token) { - navigate('/login'); + navigate('/auth'); return; } diff --git a/frontend/src/context/authContext.tsx b/frontend/src/context/authContext.tsx index 13793a86..877dae72 100644 --- a/frontend/src/context/authContext.tsx +++ b/frontend/src/context/authContext.tsx @@ -67,7 +67,7 @@ export const AuthProvider = ({ children }: { children: ReactNode }) => { localStorage.removeItem('token'); setToken(null); setUser(null); - navigate('/login'); + navigate('/auth'); return; } setToken(storedToken);