public static void UpdateAccessTokenUserAssertions(ITokenCacheInternal tokenCache, string assertion = "SomeAssertion")
        {
            var allAccessTokens = tokenCache.Accessor.GetAllAccessTokens();

            foreach (var atItem in allAccessTokens)
            {
                atItem.UserAssertionHash = assertion;
                tokenCache.AddAccessTokenCacheItem(atItem);
            }
        }
 private void expireAccessTokenButton_Click(object sender, System.EventArgs e)
 {
     expiresOnLabel.Text          = DateTimeOffset.UtcNow.ToString(CultureInfo.CurrentCulture);
     _item.ExpiresOnUnixTimestamp = CoreHelpers.DateTimeToUnixTimestamp(DateTimeOffset.UtcNow);
     _cache.AddAccessTokenCacheItem(_item);
 }
 public static void ExpireAndSaveAccessToken(ITokenCacheInternal tokenCache, MsalAccessTokenCacheItem atItem)
 {
     atItem.ExpiresOnUnixTimestamp = CoreHelpers.DateTimeToUnixTimestamp(DateTimeOffset.UtcNow);
     tokenCache.AddAccessTokenCacheItem(atItem);
 }