identity: fix expired tokens not being removed

This commit is contained in:
Abdullah Atta
2024-03-05 10:07:54 +05:00
parent 29eedd57e8
commit 1e43f7bfdd

View File

@@ -67,7 +67,7 @@ namespace Streetwriters.Identity.Services
public Task RemoveExpired()
{
return Remove(x => x.Type == "reference_token" && x.Expiration.HasValue && x.Expiration.Value.ToUniversalTime() < DateTime.UtcNow);
return Remove(x => x.Type == "reference_token" && x.Expiration.HasValue && x.Expiration.Value < DateTime.UtcNow);
}
public Task InsertOrUpdate(Expression<Func<PersistedGrant, bool>> filter, PersistedGrant entity)