return yield* httpClient.execute(request).pipe(
Effect.tap((r) => r.json.pipe(Effect.map(console.log))), // I want to log the json response, I don't care if it's a non 2xx response
// this works but is there a small util instead?
Effect.flatMap(
HttpClientResponse.schemaBodyJson(RefreshTokenResponse),
)
return yield* httpClient.execute(request).pipe(
Effect.tap((r) => r.json.pipe(Effect.map(console.log))), // I want to log the json response, I don't care if it's a non 2xx response
// this works but is there a small util instead?
Effect.flatMap(
HttpClientResponse.schemaBodyJson(RefreshTokenResponse),
)