From 99c2477ae87abaef9a38b20936c78f3a1019e6a6 Mon Sep 17 00:00:00 2001 From: Vishesh 'ironeagle' Bangotra Date: Sun, 28 Dec 2025 20:13:24 +0530 Subject: [PATCH] auto login after register --- auth/src/contexts.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/auth/src/contexts.tsx b/auth/src/contexts.tsx index f12ba4a..d2745c9 100644 --- a/auth/src/contexts.tsx +++ b/auth/src/contexts.tsx @@ -53,6 +53,7 @@ export function AuthProvider({ setError(null); await auth.post("/register", { username, password }); + await login(username, password); } catch (e: any) { setError(e.response?.data?.detail ?? "Registration failed"); } finally {