Skip to content

Commit 8bd9ccf

Browse files
committed
Unexport var
1 parent 05e651a commit 8bd9ccf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tokencache/cache_token_source.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
)
1010

1111
const (
12-
TokenExpirationGracePeriod = time.Duration(30 * time.Second)
12+
tokenExpirationGracePeriod = time.Duration(30 * time.Second)
1313
)
1414

1515
type cachingTokenSource struct {
@@ -121,6 +121,6 @@ func (c *cachingTokenSource) Token(ctx context.Context) (*oidc.Token, error) {
121121
}
122122

123123
func tokenWithinGracePeriod(token *oidc.Token) bool {
124-
gracePeriodStart := token.Claims.Expiry.Time().Add(-TokenExpirationGracePeriod)
124+
gracePeriodStart := token.Claims.Expiry.Time().Add(-tokenExpirationGracePeriod)
125125
return gracePeriodStart.Before(time.Now()) && token.Valid()
126126
}

0 commit comments

Comments
 (0)