chore(auth): remove debug logging from OAuth + registration error paths

This commit is contained in:
tanweer919
2026-07-13 02:17:22 +05:30
parent 0e8a207640
commit 5186497c50
2 changed files with 4 additions and 5 deletions
+2 -3
View File
@@ -85,9 +85,8 @@ export function LoginFlow() {
replace("identify");
}
})
.catch((e) => {
console.error("[oauth] Google sign-in failed:", e);
setFlash(`Google sign-in didn't complete: ${(e as Error)?.message ?? "please try again"}`);
.catch(() => {
setFlash("Google sign-in didn't complete. Please try again.");
replace("identify");
});
}, [ready, completeOAuthLogin, router]);
+2 -2
View File
@@ -97,8 +97,8 @@ export function RegisterFlow() {
mailingSameAsRegistered: mailingSame,
consentTerms: termsOk, consentPrivacy: privacyOk,
});
} catch (e) {
console.warn("crm.account.register failed (continuing):", e);
} catch {
// Non-fatal: the auth account already exists; the domain profile can be filled in later.
}
}
router.push("/dashboard");