()
| 191 | // call gives each request its own request-scoped socket. `CoreSharedServices` |
| 192 | // (WorkOS, no per-request socket) stays shared. |
| 193 | const makeMcpOrganizationAuthServices = () => { |
| 194 | const dbLive = makeDbLayer(); |
| 195 | const userStoreLive = makeUserStoreLayer().pipe(Layer.provide(dbLive)); |
| 196 | return Layer.mergeAll(dbLive, userStoreLive, CoreSharedServices); |
| 197 | }; |
| 198 | |
| 199 | // A URL slug resolves through the mirror to its org id before the membership |
| 200 | // check; an unknown slug authorizes nothing. Ids pass straight through — |
no test coverage detected