fix: increase auth loading timeout to 2 seconds for better Firebase compatibility

This commit is contained in:
nmemmert committed 2026-01-15 14:32:54 -05:00
1 parent db88fa52c0
commit eb9f1a6a9b
1 file changed
+2 -2
+2 -2
View File
@@ -31,12 +31,12 @@ export function AuthProvider({ children }: { children: ReactNode }) {
} }
}); });
// Timeout safety: force loading to false after 1 second // Timeout safety: force loading to false after 2 seconds
const timeout = setTimeout(() => { const timeout = setTimeout(() => {
if (mounted) { if (mounted) {
setLoading(false); setLoading(false);
} }
}, 1000); }, 2000);
return () => { return () => {
mounted = false; mounted = false;