mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-16 07:16:38 +00:00
Fix nil jwt nil
Entire-Checkpoint: cfd28dfcf51a
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user