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

Function makeNonProtectedApiLive

apps/cloud/src/api/layers.ts:57–63  ·  view source on GitHub ↗
(rsLive: Layer.Layer<DbService | UserStoreService>)

Source from the content-addressed store, hash-verified

55// handler reads it for the free-organizations-per-user limit gate — one of the
56// few app-only billing touchpoints. (It is NOT on the neutral boot core.)
57export const makeNonProtectedApiLive = (rsLive: Layer.Layer<DbService | UserStoreService>) =>
58 HttpApiBuilder.layer(NonProtectedApi).pipe(
59 Layer.provide(Layer.mergeAll(CloudAuthPublicHandlers, CloudSessionAuthHandlers)),
60 Layer.provide(requestScopedMiddleware(rsLive).layer),
61 Layer.provideMerge(SessionAuthLive),
62 Layer.provideMerge(AutumnService.Default),
63 );
64
65// Cloud-only WorkOS domain-verification routes. Auth is enforced by a router
66// middleware that resolves the URL org selector header before falling back to

Callers 2

makeApiLiveFunction · 0.90
layers.tsFile · 0.85

Calls 1

requestScopedMiddlewareFunction · 0.90

Tested by

no test coverage detected