private async Task <AbpUserConfigurationDto> GetAuthenticatedUserConfig() { var userConfig = await _apiClient.GetAsync <AbpUserConfigurationDto>(Endpoint); if (userConfig.HasSessionUserId()) { return(userConfig); } if (_tokenManager.IsRefreshTokenExpired) { return(await HandleSessionTimeOut(userConfig)); } return(await RefreshAccessTokenAndSendRequestAgain()); }
public async Task <AbpUserConfigurationDto> GetAsync(bool isUserLoggedIn) { const string endpoint = "AbpUserConfiguration/GetAll"; if (isUserLoggedIn) { return(await _apiClient.GetAsync <AbpUserConfigurationDto>(endpoint)); } return(await _apiClient.GetAnonymousAsync <AbpUserConfigurationDto>(endpoint)); }