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

Function makeIsAuthorized

apps/local/src/serve-shared.ts:67–69  ·  view source on GitHub ↗
(token: string)

Source from the content-addressed store, hash-verified

65/** The request gate: a valid `Authorization: Bearer <token>` header. */
66export const makeIsAuthorized =
67 (token: string) =>
68 (request: Request): boolean =>
69 hasBearerToken(request, token);
70
71export const hasFileExtension = (pathname: string): boolean => {
72 const lastSegment = pathname.split("/").at(-1) ?? "";

Callers 3

configureServerFunction · 0.90
startServerFunction · 0.90

Calls 1

hasBearerTokenFunction · 0.85

Tested by

no test coverage detected