Auth Package Extraction And Auth Flow Refactor #2

Merged
aetos merged 5 commits from auth-package into main 2025-12-28 14:47:38 +00:00
Showing only changes of commit 99c2477ae8 - Show all commits

View File

@@ -53,6 +53,7 @@ export function AuthProvider({
setError(null); setError(null);
await auth.post("/register", { username, password }); await auth.post("/register", { username, password });
await login(username, password);
} catch (e: any) { } catch (e: any) {
setError(e.response?.data?.detail ?? "Registration failed"); setError(e.response?.data?.detail ?? "Registration failed");
} finally { } finally {