From: Dan Fuhry Date: Tue, 16 Apr 2024 12:38:11 +0000 (-0400) Subject: machines/oauth2: fix stupid mistake in oauth2 http transport wrapper X-Git-Url: https://go.fuhry.dev/?a=commitdiff_plain;h=350107bcd4fdb5de2ad694f7842d4cba833b5b0d;p=runtime.git machines/oauth2: fix stupid mistake in oauth2 http transport wrapper --- diff --git a/machines/oauth2.go b/machines/oauth2.go index 5843142..4a5c61f 100644 --- a/machines/oauth2.go +++ b/machines/oauth2.go @@ -105,7 +105,7 @@ func (oc *oauthClient) loadAccessToken() (string, error) { // if the client's store in memory has an expired access token, reread it from // the disk if oc.store != nil { - if oc.store.ExpiresAt >= now.Unix() { + if oc.store.ExpiresAt <= now.Unix() { oc.store = nil } }