protected override async Task <HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
        {
            if (_authenticationResponse == null || _authenticationResponse.IsExpired())
            {
                _authenticationResponse = await _getToken().ConfigureAwait(false);
            }

            request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", $"{_authenticationResponse.AccesToken}");
            return(await base.SendAsync(request, cancellationToken).ConfigureAwait(false));
        }