Beispiel #1
0
        private void GetAuth()
        {
            browser.Source = _authUtils.ServerUri;



            browser.Navigating += async(object sender, WebNavigatingEventArgs e) =>
            {
                _absoluteUrl = e.Url;

                BaseViewModel.SpotifyApi = await _authUtils.GetApi(_absoluteUrl);

                if (BaseViewModel.SpotifyApi != null && !check)
                {
                    check = true;
                    BaseViewModel.Logged = true;
                    App.Current.MainPage = new MainPage();
                }
            };
            //auth.OpenBrowser();
        }