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