mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-18 08:16:39 +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 {
|
if err != nil {
|
||||||
log.Warnf("could not get keys from key fetcher: %s, it will try again on the next http request", err)
|
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{
|
return &Validator{
|
||||||
keys: keys,
|
keys: keys,
|
||||||
|
|||||||
Reference in New Issue
Block a user