private async void FetchLogin(string email, string pass)
        {
            try
            {
                var auth = new FirebaseAuthProvider(new FirebaseConfig(FirebaseAppKey));
                var data = await auth.SignInWithEmailAndPasswordAsync(email, pass);

                var win = new personalpage();
                win.Show();
                this.Close();
                //Process.Start("HeroTD.exe");
            }
            catch (Exception e)
            {
                MessageBox.Show("Invalid Username or Password");
                //MessageBox.Show(e.ToString());
            }
        }
Example #2
0
        private void BrowserNavigated(object sender, System.Windows.Navigation.NavigationEventArgs e)
        {
            var fb = new FacebookClient();
            FacebookOAuthResult oauthResult;

            if (!fb.TryParseOAuthCallbackUrl(e.Uri, out oauthResult))
            {
                return;
            }

            if (oauthResult.IsSuccess)
            {
                this.Browser.Visibility = Visibility.Collapsed;
                MessageBox.Show("Logged on");
                var win = new personalpage();
                win.Show();
                this.Close();
                //this.FetchFirebaseData(oauthResult.AccessToken, FirebaseAuthType.Facebook);
            }
        }