When I call AcquireTokenByAuthorizationCode with ConfidentialClientApplication I got a refresh token.
It doesn't have any expiration info and therefore DistributedCacheEntryOptions parameters comes with all nulls.
The code in GetOptions puts there default sliding expiration time of 20 minutes.
This is wrong because this token generally should be treated as never expired.
When I call
AcquireTokenByAuthorizationCode
withConfidentialClientApplication
I got a refresh token.It doesn't have any expiration info and therefore
DistributedCacheEntryOptions
parameters comes with all nulls. The code inGetOptions
puts there default sliding expiration time of 20 minutes.This is wrong because this token generally should be treated as never expired.