We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e0e9b82 + 055b474 commit 1688c84Copy full SHA for 1688c84
builder/tencentcloud/cvm/oauth.go
@@ -26,7 +26,7 @@ func GetOauthConfig(p *Profile) error {
26
now := time.Now()
27
futureTime := now.Add(30 * time.Second)
28
targetTime := time.Unix(p.Oauth.ExpiresAt, 0)
29
- if targetTime.After(futureTime) {
+ if futureTime.After(targetTime) {
30
expired = true
31
}
32
0 commit comments