Beispiel #1
0
        public static async Task Logout()
        {
            try
            {
                //await Browser.OpenAsync("https://pilotdeli-mvc.azurewebsites.net/mobileauth/logout2", BrowserLaunchMode.SystemPreferred);
                if (Device.RuntimePlatform == Device.Android)
                {
                    var authUrl     = new Uri($"https://pilotdeli-mvc.azurewebsites.net/mobileauth/logout");
                    var callbackUrl = new Uri(CALLBACK_URL);
                    await WebAuthenticator.AuthenticateAsync(authUrl, callbackUrl);
                }

                BikerService.ClearRider();
            }
            catch (Exception e)
            {
            }
        }