fix: increase auth loading timeout to 2 seconds for better Firebase compatibility
This commit is contained in:
1 parent
db88fa52c0
commit
eb9f1a6a9b
1 file changed
+2
-2
@@ -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(() => {
|
||||
if (mounted) {
|
||||
setLoading(false);
|
||||
}
|
||||
}, 1000);
|
||||
}, 2000);
|
||||
|
||||
return () => {
|
||||
mounted = false;
|
||||
|
||||
Reference in new issue
Block a user