(
request: Request,
)
| 422 | // the tag is resolved in the request fiber. Both fail the shared |
| 423 | // `Unauthorized | NoOrganization | Unavailable`. |
| 424 | const authenticate = ( |
| 425 | request: Request, |
| 426 | ): Effect.Effect<ResolvedPrincipal, IdentityFailure, IdentityProvider> => |
| 427 | Effect.flatMap(IdentityProvider.asEffect(), (provider) => provider.authenticate(request)); |
| 428 | |
| 429 | // The per-request layer combined into the middleware: cloud's `requestScoped` |
| 430 | // (the postgres socket) with `providers.identity` PROVIDE-MERGEd over it, so the |
nothing calls this directly
no outgoing calls
no test coverage detected