(sessionId: string)
| 67 | } |
| 68 | |
| 69 | export function assertSafeSessionId(sessionId: string): void { |
| 70 | if (!isSafeSessionId(sessionId)) throw new Error(`Invalid Session id: ${sessionId}`); |
| 71 | } |
| 72 | export class SessionNotFoundError extends Error { |
| 73 | readonly name = 'SessionNotFoundError'; |
| 74 | readonly code = 'session_not_found'; |
no test coverage detected