Skip to content

Commit

Permalink
chore: do not cache unused TTL in id_token object
Browse files Browse the repository at this point in the history
  • Loading branch information
David-Wobrock committed Oct 28, 2024
1 parent ce20307 commit 4229ee6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pipeline/mutate/mutator_id_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ func (a *MutatorIDToken) WithCache(t *template.Template) {

type idTokenCacheContainer struct {
ExpiresAt time.Time
TTL time.Duration
Token string
}

Expand Down Expand Up @@ -112,7 +111,6 @@ func (a *MutatorIDToken) tokenToCache(config *CredentialsIDTokenConfig, session
a.tokenCache.SetWithTTL(
key,
&idTokenCacheContainer{
TTL: ttl,
ExpiresAt: expiresAt,
Token: token,
},
Expand Down

0 comments on commit 4229ee6

Please sign in to comment.