Fix nil jwt nil

Entire-Checkpoint: cfd28dfcf51a
This commit is contained in:
braginini
2026-03-31 17:36:08 +02:00
parent 8d09ded1db
commit 8d3e5f508c

View File

@@ -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,