Refactored AuthManager to utilize ApiClientFactory instead of IHttpClientFactory, streamlining the creation and usage of API clients within the class. The constructor now accepts an ApiClientFactory instance, enhancing the instantiation process of API clients. Additionally, the Login method has been simplified by directly using the apiClient to access an Account client for authentication, removing the need to manually create HttpClient and AccountClient instances. This change aims to simplify and improve the efficiency of the authentication process.
Refactored
AuthManager
to utilizeApiClientFactory
instead ofIHttpClientFactory
, streamlining the creation and usage of API clients within the class. The constructor now accepts anApiClientFactory
instance, enhancing the instantiation process of API clients. Additionally, theLogin
method has been simplified by directly using theapiClient
to access anAccount
client for authentication, removing the need to manually createHttpClient
andAccountClient
instances. This change aims to simplify and improve the efficiency of the authentication process.