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 {