(now: number)
| 29 | const store = new Map<string, StoredResult>(); |
| 30 | |
| 31 | const cleanupExpired = (now: number) => { |
| 32 | for (const [sessionId, entry] of store) { |
| 33 | if (entry.expiresAt < now) store.delete(sessionId); |
| 34 | } |
| 35 | }; |
| 36 | |
| 37 | /** |
| 38 | * Publish a completed OAuth result. Called from `runOAuthCallback` after |
no test coverage detected