public void RefreshToken() { Device.BeginInvokeOnMainThread(async() => { GlobalSettings.Instance.UserProfile.ClearProfile(); Settings.UserProfile = JsonConvert.SerializeObject(GlobalSettings.Instance.UserProfile); _requestProvider.ClientTokenReset(); await _navigationService.NavigateToAsync <LoginViewModel>(); await _navigationService.RemoveBackStackAsync(); await StopSocketServicesAsync(); }); }