I\'m using the below code to create a HttpClient singleton with credentials.
services.AddHttpClient().SetHandlerLifetime(TimeSpan