Question About Layer Dependencies in `AuthenticatedHttpClient`

#ask

- I have custom http client for protected api called AuthenticatedHttpClient.
- The AuthenticatedHttpClient depends on Config layer.
- The AuthenticatedHttpClient will call login endpoint to get access token before the initial request.
- The AuthenticatedHttpClient has several custom error depends on the api response.

Is it ok to have leakage requirements on AuthenticatedHttpClient layer?

Note: The code wasn't fit on discord message. So I provide the screenshot instead.

Thanks.
image.png
Was this page helpful?