Skip to content

Commit 3bc3ab6

Browse files
author
Vicente.Yu
committed
调整 Token 过期判断条件,依据一些实践,expires=0时,token已经过期。
1 parent cfafcbe commit 3bc3ab6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WebApiClientCore.Extensions.OAuths/TokenResult.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public virtual bool IsSuccess()
7575
/// <returns></returns>
7676
public virtual bool IsExpired()
7777
{
78-
return DateTime.Now.Subtract(this.createTime) > TimeSpan.FromSeconds(this.Expires_in);
78+
return DateTime.Now.Subtract(this.createTime) >= TimeSpan.FromSeconds(this.Expires_in);
7979
}
8080

8181
/// <summary>

0 commit comments

Comments
 (0)