()
| 212 | // ── Internals ───────────────────────────────────────────────────────────── |
| 213 | |
| 214 | private cleanup(): void { |
| 215 | const now = Date.now(); |
| 216 | for (const [id, s] of this.sessions) { |
| 217 | if (now > s.expiresAt) this.sessions.delete(id); |
| 218 | } |
| 219 | } |
| 220 | } |
no test coverage detected