MCPcopy
hub / github.com/Effect-TS/effect / Unauthorized

Class Unauthorized

packages/platform-node/examples/api.ts:30–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28class CurrentUser extends Context.Tag("CurrentUser")<CurrentUser, User>() {}
29
30class Unauthorized extends Schema.TaggedError<Unauthorized>()("Unauthorized", {
31 message: Schema.String
32}, HttpApiSchema.annotations({ status: 401 })) {}
33
34export class Authentication extends HttpApiMiddleware.Tag<Authentication>()("Authentication", {
35 failure: Unauthorized,

Callers

nothing calls this directly

Calls 1

annotationsMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…