rsnarsna commited on
Commit
eb0770c
·
1 Parent(s): 6b5ca19

fix: Increase polling intervals for authentication status checks to reduce server load

Browse files
Files changed (1) hide show
  1. index.html +2 -2
index.html CHANGED
@@ -242,10 +242,10 @@
242
  const res = await fetch('/auth/status');
243
  const data = await res.json();
244
  if (data.authenticated) { clearInterval(check); setAuthBanner(true); }
245
- }, 2000);
246
  // Stop checking after 2 min
247
  setTimeout(() => clearInterval(check), 120000);
248
- }, 3000);
249
  }
250
 
251
  /* ── Helpers ── */
 
242
  const res = await fetch('/auth/status');
243
  const data = await res.json();
244
  if (data.authenticated) { clearInterval(check); setAuthBanner(true); }
245
+ }, 20000);
246
  // Stop checking after 2 min
247
  setTimeout(() => clearInterval(check), 120000);
248
+ }, 30000);
249
  }
250
 
251
  /* ── Helpers ── */