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

Function hasBearer

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

Source from the content-addressed store, hash-verified

74};
75
76const hasBearer = (request: Request): boolean =>
77 (request.headers.get("authorization") ?? "").startsWith("Bearer ");
78
79/**
80 * 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