/// <inheritdoc/>
        public async Task <AuthenticationData> RefreshToken(CancellationToken ct, HttpRequestMessage request, AuthenticationData unauthorizedToken)
        {
            var authenticationData = await _authenticationEndpoint.RefreshToken(ct, unauthorizedToken);

            await _applicationSettingsService.SetAuthenticationData(ct, authenticationData);

            return(authenticationData);
        }