opencode/packages/protocol/src/middleware/authorization.ts
2026-07-01 13:53:09 -04:00

6 lines
258 B
TypeScript

import { HttpApiMiddleware } from "effect/unstable/httpapi"
import { UnauthorizedError } from "../errors.js"
export class Authorization extends HttpApiMiddleware.Service<Authorization>()("@opencode/HttpApiAuthorization", {
error: UnauthorizedError,
}) {}