sec: set the absolute time of the token
This commit is contained in:
parent
c3c9844e2f
commit
e79ddf220f
@ -171,7 +171,7 @@ public class OAuthService(ILogger<OAuthService> logger, Dictionary<OAuthProvider
|
|||||||
cache.SetAsync(
|
cache.SetAsync(
|
||||||
key,
|
key,
|
||||||
JsonSerializer.SerializeToUtf8Bytes(data),
|
JsonSerializer.SerializeToUtf8Bytes(data),
|
||||||
slidingExpiration: TimeSpan.FromMinutes(15),
|
absoluteExpirationRelativeToNow: TimeSpan.FromMinutes(15),
|
||||||
cancellationToken: cancellation);
|
cancellationToken: cancellation);
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user