Remove debug console logs

This commit is contained in:
gpt-engineer-app[bot]
2025-10-21 15:51:53 +00:00
parent 5e789c7b4b
commit d78356e673
26 changed files with 37 additions and 156 deletions

View File

@@ -76,7 +76,6 @@ export function AuthButtons() {
src={profile?.avatar_url || undefined}
alt={profile?.display_name || profile?.username || user.email || 'User avatar'}
onError={(e) => {
console.warn('[Avatar] Failed to load image:', profile?.avatar_url);
e.currentTarget.src = ''; // Force fallback
}}
/>

View File

@@ -99,8 +99,6 @@ export function AuthModal({ open, onOpenChange, defaultTab = 'signin' }: AuthMod
const postAuthResult = await handlePostAuthFlow(data.session, 'password');
if (postAuthResult.success && postAuthResult.data.shouldRedirect) {
console.log('[AuthModal] MFA step-up required');
// Get the TOTP factor ID
const { data: factors } = await supabase.auth.mfa.listFactors();
const totpFactor = factors?.totp?.find(f => f.status === 'verified');

View File

@@ -125,7 +125,6 @@ export function TOTPSetup() {
const isOAuthUser = authMethod === 'oauth';
if (isOAuthUser) {
console.log('[TOTPSetup] OAuth user enrolled MFA, triggering step-up...');
setStepUpRequired(true, window.location.pathname);
navigate('/auth/mfa-step-up');
return;