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