/// <summary> /// This method is used to sign out the currently signed on user /// </summary> /// <returns>Success or failure</returns> public async Task <bool> SignOutAsync() { var result = await GraphService.Logout(); SignOutCompleted?.Invoke(this, EventArgs.Empty); return(result); }
public void SignOut() { MsaToken = string.Empty; AadUser = null; SignedInAccount = null; ApplicationData.Current.LocalSettings.Values.Remove(MsaTokenKey); new AuthenticationContext("https://login.microsoftonline.com/common").TokenCache.Clear(); SignOutCompleted?.Invoke(null, new EventArgs()); }
/// <summary> /// This method is used to sign out the currently signed on user /// </summary> public void SignOut() { GraphService.Logout(); SignOutCompleted?.Invoke(this, EventArgs.Empty); }
public void SignOut() { var result = GraphService.Logout().Result; SignOutCompleted?.Invoke(this, EventArgs.Empty); }