(value: unknown, status = 200)
| 454 | } |
| 455 | |
| 456 | function jsonResponse(value: unknown, status = 200): Response { |
| 457 | return new Response(JSON.stringify(value), { |
| 458 | status, |
| 459 | headers: { |
| 460 | "Content-Type": JSON_CONTENT, |
| 461 | "Cache-Control": "no-store", |
| 462 | }, |
| 463 | }); |
| 464 | } |
| 465 | |
| 466 | function sessionExpired(value: string | undefined): boolean { |
| 467 | if (!value) return false; |
no outgoing calls
no test coverage detected