()
| 10 | import { DbService } from "../db/db"; |
| 11 | |
| 12 | const unauthorized = () => |
| 13 | HttpServerResponse.jsonUnsafe( |
| 14 | { |
| 15 | error: "Invalid or expired session", |
| 16 | code: "invalid_session", |
| 17 | }, |
| 18 | { status: 401 }, |
| 19 | ); |
| 20 | |
| 21 | const noOrganization = () => |
| 22 | HttpServerResponse.jsonUnsafe( |