From de2b54b50bb6d79ff7cd6c54ae6065048fde6a26 Mon Sep 17 00:00:00 2001 From: Gemini AI Date: Mon, 29 Dec 2025 03:07:58 +0400 Subject: [PATCH] debug: add detailed JSON logging to login result --- packages/ui/src/components/auth/LoginView.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/ui/src/components/auth/LoginView.tsx b/packages/ui/src/components/auth/LoginView.tsx index e4caeff..62e9316 100644 --- a/packages/ui/src/components/auth/LoginView.tsx +++ b/packages/ui/src/components/auth/LoginView.tsx @@ -96,12 +96,14 @@ const LoginView: Component = (props) => { password: password(), }) - console.log("[LoginView] Login result:", result) + console.log("[LoginView] Login result:", JSON.stringify(result)) if (result?.success) { + console.log("[LoginView] SUCCESS! Calling onLoginSuccess with:", result.user) toast.success(`Welcome back, ${result.user.name}!`) setActiveUserId(result.user.id) props.onLoginSuccess(result.user) } else { + console.log("[LoginView] FAILED - result.success is:", result?.success) toast.error("Invalid key for this identity") } } else {