Пример #1
0
        private async Task RegisterWithGoogle()
        {
            try
            {
                var result = await _externalService.RegisterWithGoogle();

                var userProfileNavigation = new UserProfileNavigation(result.UserId, result.AccessToken);
                await HostScreen.Router.Navigate.Execute(new RegisterUserProfileViewModel(userProfileNavigation, _hostScreen));
            }
            catch (Exception ex)
            {
                _logger.Error(nameof(RegisterWithFacebook), ex);
                await _dialogService.PresentAlertAsync("Tittel", "Body");
            }
        }