private async void WebView_Navigated(object sender, WebNavigatedEventArgs e) { try { accesToken = ExtractAccessToken(e.Url); if (accesToken != "") { if (Application.Current.Properties.ContainsKey("tokenFace")) { Application.Current.Properties["tokenFace"] = accesToken; } else { Application.Current.Properties.Add("tokenFace", accesToken); } webView.IsVisible = false; stackLoading.IsVisible = true; await GetDadosFace(); MainPage.AbrirMenu(); stackLoading.IsVisible = false; } else { stackLoading.IsVisible = false; webView.IsVisible = true; } } catch { await Navigation.PopAsync(true); stackLoading.IsVisible = true; } }