fix crash when config is not properly initialized (#12714)

fixes #12709
This commit is contained in:
Harshavardhana
2021-07-14 18:27:25 -07:00
committed by GitHub
parent 92ffe5e5ef
commit 10fc30a989
4 changed files with 41 additions and 47 deletions

View File

@@ -95,7 +95,7 @@ func TestValidators(t *testing.T) {
cfg := Config{}
cfg.JWKS.URL = u
if err = vrs.Add(NewJWT(cfg)); err != nil {
if err = vrs.Add(&cfg); err != nil {
t.Fatal(err)
}