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

Function makeMcpOrganizationAuthServices

apps/cloud/src/mcp/auth.ts:207–211  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

205// call gives each request its own request-scoped socket. `CoreSharedServices`
206// (WorkOS, no per-request socket) stays shared.
207const makeMcpOrganizationAuthServices = () => {
208 const dbLive = makeDbLayer();
209 const userStoreLive = makeUserStoreLayer().pipe(Layer.provide(dbLive));
210 return Layer.mergeAll(dbLive, userStoreLive, CoreSharedServices);
211};
212
213// A URL slug resolves through the mirror to its org id before the membership
214// check; an unknown slug authorizes nothing. Ids pass straight through —

Callers 1

auth.tsFile · 0.85

Calls 2

makeDbLayerFunction · 0.90
makeUserStoreLayerFunction · 0.90

Tested by

no test coverage detected