()
| 15 | import { DbService } from "../db/db"; |
| 16 | |
| 17 | const unauthorized = () => |
| 18 | HttpServerResponse.jsonUnsafe( |
| 19 | { |
| 20 | error: "Invalid or expired session", |
| 21 | code: "invalid_session", |
| 22 | }, |
| 23 | { status: 401 }, |
| 24 | ); |
| 25 | |
| 26 | const noOrganization = () => |
| 27 | HttpServerResponse.jsonUnsafe( |