Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
76
const
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
authenticate
Function · 0.85
Calls
1
get
Method · 0.65
Tested by
no test coverage detected