From 350107bcd4fdb5de2ad694f7842d4cba833b5b0d Mon Sep 17 00:00:00 2001 From: Dan Fuhry Date: Tue, 16 Apr 2024 08:38:11 -0400 Subject: [PATCH] machines/oauth2: fix stupid mistake in oauth2 http transport wrapper --- machines/oauth2.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } } -- 2.50.1