refactor: use native async discovery and simplify shared state
This commit is contained in:
1 parent
5032cbb8c0
commit
4e2b6b1200
87 files changed
+2063
-2002
No files matched your search
@@ -853,7 +853,7 @@ export async function initWebUI(
|
||||
// Periodic janitor — keeps sessionTokens / loginAttempts from growing
|
||||
// unbounded and replaces the per-request O(n) sweep we used to do.
|
||||
const tokenJanitor = setInterval(purgeExpiredTokens, 60_000);
|
||||
tokenJanitor.unref?.();
|
||||
tokenJanitor.unref();
|
||||
|
||||
// ─── Login ───────────────────────────────────────────────────────────────
|
||||
app.post('/api/login', async (c) => {
|
||||
|
||||
Reference in new issue
Block a user