MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / hasBearer

Function hasBearer

apps/host-selfhost/src/mcp/auth.ts:77–78  ·  view source on GitHub ↗
(request: Request)

Source from the content-addressed store, hash-verified

75};
76
77const hasBearer = (request: Request): boolean =>
78 (request.headers.get("authorization") ?? "").startsWith("Bearer ");
79
80/**
81 * The org-scoped pathname the client actually dialed, recovered from the strip

Callers 1

authenticateFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected