]> go.fuhry.dev Git - runtime.git/commitdiff
machines/oauth2: fix stupid mistake in oauth2 http transport wrapper
authorDan Fuhry <dan@fuhry.com>
Tue, 16 Apr 2024 12:38:11 +0000 (08:38 -0400)
committerDan Fuhry <dan@fuhry.com>
Tue, 16 Apr 2024 12:38:11 +0000 (08:38 -0400)
machines/oauth2.go

index 584314219db7b9a38e15d236ae7346463abbf388..4a5c61f63a7599e783cc625afe234a535a7c5f2f 100644 (file)
@@ -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
                }
        }