Download packages/protocol/src/middleware/authorization.ts from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 255 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/protocol/src/middleware/authorization.ts
- Command line
-
hf download hf://SaylorTwift/opencode/packages/protocol/src/middleware/authorization.ts
-
curl -L -o authorization.ts https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/protocol/src/middleware/authorization.ts
255 Bytes
| import { HttpApiMiddleware } from "effect/unstable/httpapi" | |
| import { UnauthorizedError } from "../errors" | |
| export class Authorization extends HttpApiMiddleware.Service<Authorization>()("@opencode/HttpApiAuthorization", { | |
| error: UnauthorizedError, | |
| }) {} | |