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

Function makeNonProtectedApiLive

apps/cloud/src/api/layers.ts:69–77  ·  view source on GitHub ↗
(
  rsLive: Layer.Layer<DbService | UserStoreService | WorkOsMirror | MemberDirectory>,
)

Source from the content-addressed store, hash-verified

67// handler reads it for the free-organizations-per-user limit gate — one of the
68// few app-only billing touchpoints. (It is NOT on the neutral boot core.)
69export const makeNonProtectedApiLive = (
70 rsLive: Layer.Layer<DbService | UserStoreService | WorkOsMirror | MemberDirectory>,
71) =>
72 HttpApiBuilder.layer(NonProtectedApi).pipe(
73 Layer.provide(Layer.mergeAll(CloudAuthPublicHandlers, CloudSessionAuthHandlers)),
74 Layer.provide(requestScopedMiddleware(rsLive).layer),
75 Layer.provideMerge(SessionAuthLive),
76 Layer.provideMerge(AutumnService.Default),
77 );
78
79// Cloud-only WorkOS domain-verification routes. Auth is enforced by a router
80// 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