示例#1
0
 public static bool IsTimeExpired(this LoginToken token)
 {
     return(token.ExpireTime <= DateTimeOffset.UtcNow);
 }
示例#2
0
 public static bool ShouldRefresh(this LoginToken token)
 {
     return(token.ExpireTime <= DateTimeOffset.UtcNow + ConfigConstants.TokenRefreshThreshold);
 }