Skip to content

Commit

Permalink
Not
Browse files Browse the repository at this point in the history
  • Loading branch information
mjcmtb committed Sep 17, 2024
1 parent 49e3237 commit 8e9a56f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tokencache/cache_token_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func (c *cachingTokenSource) Token(ctx context.Context) (*oidc.Token, error) {
}

var newToken *oidc.Token
if token != nil && token.Valid() && TokenWithinGracePeriod(token) {
if token != nil && token.Valid() && !TokenWithinGracePeriod(token) {
return token, nil
} else if token != nil && token.RefreshToken != "" {
// we have an expired token, try and refresh if we can.
Expand Down

0 comments on commit 8e9a56f

Please sign in to comment.