Fix: Resolve authentication state recognition issues

This commit is contained in:
gpt-engineer-app[bot]
2025-10-11 00:54:27 +00:00
parent 9c5487baff
commit 06ed528d76
4 changed files with 24 additions and 4 deletions

View File

@@ -78,6 +78,10 @@ export function AuthModal({ open, onOpenChange, defaultTab = 'signin' }: AuthMod
title: "Welcome back!",
description: "You've been signed in successfully."
});
// Wait for auth state to propagate before closing
await new Promise(resolve => setTimeout(resolve, 100));
onOpenChange(false);
} catch (error: any) {
setSignInCaptchaKey(prev => prev + 1);