Reduce auth loading timeout from 8s to 3s and add safeguard

cgen-61ae4533517c4651aaffe06b7bb3ae68
This commit is contained in:
Builder.io 2025-11-08 09:11:51 +00:00
parent 3282f3f995
commit 4e18d6c7a5

View file

@ -173,7 +173,7 @@ export const AuthProvider: React.FC<{ children: React.ReactNode }> = ({
if (!sessionRestored) {
setLoading(false);
}
}, 8000);
}, 3000);
if (!storageClearedRef.current && typeof window !== "undefined") {
try {