From 8d3e5f508c4495f4b153be2d50a54976117c45df Mon Sep 17 00:00:00 2001 From: braginini Date: Tue, 31 Mar 2026 17:36:08 +0200 Subject: [PATCH] Fix nil jwt nil Entire-Checkpoint: cfd28dfcf51a --- shared/auth/jwt/validator.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shared/auth/jwt/validator.go b/shared/auth/jwt/validator.go index 5a014de2d..cf18b2cf6 100644 --- a/shared/auth/jwt/validator.go +++ b/shared/auth/jwt/validator.go @@ -98,6 +98,9 @@ func NewValidatorWithKeyFetcher(issuer string, audienceList []string, keyFetcher if err != nil { log.Warnf("could not get keys from key fetcher: %s, it will try again on the next http request", err) } + if keys == nil { + keys = &Jwks{} + } return &Validator{ keys: keys,