sec: set the absolute time of the token

This commit is contained in:
Polianin Nikita 2024-12-28 08:29:31 +03:00
parent c3c9844e2f
commit e79ddf220f

View File

@ -171,7 +171,7 @@ public class OAuthService(ILogger<OAuthService> logger, Dictionary<OAuthProvider
cache.SetAsync(
key,
JsonSerializer.SerializeToUtf8Bytes(data),
slidingExpiration: TimeSpan.FromMinutes(15),
absoluteExpirationRelativeToNow: TimeSpan.FromMinutes(15),
cancellationToken: cancellation);