mirror of
https://github.com/streetwriters/notesnook-sync-server.git
synced 2026-10-12 06:57:06 +02:00
identity: only clean reference_tokens
This commit is contained in:
1 parent
1f72e2c3a8
commit
9f4293560f
1 file changed
+1
-1
@@ -67,7 +67,7 @@ namespace Streetwriters.Identity.Services
|
||||
|
||||
public Task RemoveExpired()
|
||||
{
|
||||
return Remove(x => x.Expiration.HasValue && x.Expiration.Value.AddHours(12) < DateTime.UtcNow);
|
||||
return Remove(x => x.Type == "reference_token" && x.Expiration.HasValue && x.Expiration.Value.ToUniversalTime() < DateTime.UtcNow);
|
||||
}
|
||||
|
||||
public Task InsertOrUpdate(Expression<Func<PersistedGrant, bool>> filter, PersistedGrant entity)
|
||||
|
||||
Reference in new issue
Block a user