From 504f77a60c5a1357bde23b658a7a582f428da89f Mon Sep 17 00:00:00 2001 From: Till JS Date: Tue, 31 Mar 2026 18:05:41 +0200 Subject: [PATCH] debug: log login error shape --- services/mana-auth/src/routes/auth.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/services/mana-auth/src/routes/auth.ts b/services/mana-auth/src/routes/auth.ts index 4abbcad60..d74835f9c 100644 --- a/services/mana-auth/src/routes/auth.ts +++ b/services/mana-auth/src/routes/auth.ts @@ -131,6 +131,15 @@ export function createAuthRoutes( return c.json(response); } catch (error) { + console.log( + '[login debug] caught error:', + JSON.stringify({ + msg: (error as any)?.message, + status: (error as any)?.status, + body: (error as any)?.body, + name: (error as any)?.name, + }) + ); // Better Auth throws APIError.from("FORBIDDEN", "EMAIL_NOT_VERIFIED") for unverified emails const isEmailNotVerified = (error as any)?.status === 403 ||