(rsLive: Layer.Layer<DbService | UserStoreService>)
| 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.) |
| 57 | export 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 |
no test coverage detected