await store.Maintenance.SendAsync(new ConfigureExpirationOperation(new ExpirationConfiguration
{
Disabled = false,
DeleteFrequencyInSec = 60
}));
documentStore.Conventions.CustomizeJsonSerializer += (JsonSerializer serializer) =>
{
serializer.Converters.Add(new ClaimConverter());
serializer.Converters.Add(new ClaimsPrincipalConverter());
};