opencode / packages /protocol /src /middleware /authorization.ts
SaylorTwift's picture
SaylorTwift HF Staff
Add files using upload-large-folder tool
89a2873 verified
Raw
History Blame Contribute Delete
255 Bytes
import { HttpApiMiddleware } from "effect/unstable/httpapi"
import { UnauthorizedError } from "../errors"
export class Authorization extends HttpApiMiddleware.Service<Authorization>()("@opencode/HttpApiAuthorization", {
error: UnauthorizedError,
}) {}