Skip to content

fix: typo: JKWKSFetcherWithDefaultTTL -> JWKSFetcherWithDefaultTTL #850

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions client_authentication_jwks_strategy.go
Original file line number Diff line number Diff line change
@@ -63,8 +63,8 @@ func NewDefaultJWKSFetcherStrategy(opts ...func(*DefaultJWKSFetcherStrategy)) JW
return s
}

// JKWKSFetcherWithDefaultTTL sets the default TTL for the cache.
func JKWKSFetcherWithDefaultTTL(ttl time.Duration) func(*DefaultJWKSFetcherStrategy) {
// JWKSFetcherWithDefaultTTL sets the default TTL for the cache.
func JWKSFetcherWithDefaultTTL(ttl time.Duration) func(*DefaultJWKSFetcherStrategy) {
return func(s *DefaultJWKSFetcherStrategy) {
s.ttl = ttl
}
2 changes: 1 addition & 1 deletion client_authentication_jwks_strategy_test.go
Original file line number Diff line number Diff line change
@@ -118,7 +118,7 @@ func TestDefaultJWKSFetcherStrategy(t *testing.T) {
t.Run("JWKSFetcherWithTTL", func(t *testing.T) {
ts := initServerWithKey(t)

s := NewDefaultJWKSFetcherStrategy(JKWKSFetcherWithDefaultTTL(time.Nanosecond))
s := NewDefaultJWKSFetcherStrategy(JWKSFetcherWithDefaultTTL(time.Nanosecond))
_, err := s.Resolve(ctx, ts.URL, false)
require.NoError(t, err)
s.(*DefaultJWKSFetcherStrategy).cache.Wait()