(id: string)
| 105 | } |
| 106 | |
| 107 | get(id: string): SessionData | undefined { |
| 108 | const s = this.sessions.get(id); |
| 109 | if (!s) return undefined; |
| 110 | if (Date.now() > s.expiresAt) { |
| 111 | this.sessions.delete(id); |
| 112 | return undefined; |
| 113 | } |
| 114 | return s; |
| 115 | } |
| 116 | |
| 117 | delete(id: string): void { |
| 118 | this.sessions.delete(id); |
no test coverage detected