( user: Option.Option.Value<Effect.Effect.Success<typeof getCurrentUser>>, )
| 51 | }); |
| 52 | |
| 53 | export const makeCurrentUserLayer = ( |
| 54 | user: Option.Option.Value<Effect.Effect.Success<typeof getCurrentUser>>, |
| 55 | ) => Layer.succeed(CurrentUser, makeCurrentUser(user)); |
| 56 | |
| 57 | export const HttpAuthMiddlewareLive = Layer.effect( |
| 58 | HttpAuthMiddleware, |
no test coverage detected