@@ -30,22 +30,26 @@ var (
3030 nilKeyFunc jwt.Keyfunc = nil
3131 multipleZeroKeyFunc jwt.Keyfunc = func (t * jwt.Token ) (interface {}, error ) { return []interface {}{}, nil }
3232 multipleEmptyKeyFunc jwt.Keyfunc = func (t * jwt.Token ) (interface {}, error ) {
33- return jwt.VerificationKeySet {Keys : []jwt.VerificationKey {nil , nil }}, nil
33+ keys := []jwt.VerificationKey {nil , nil }
34+ return jwt.VerificationKeySet [jwt.VerificationKey ]{Keys : keys }, nil
3435 }
3536 multipleVerificationKeysFunc jwt.Keyfunc = func (t * jwt.Token ) (interface {}, error ) {
3637 return []jwt.VerificationKey {jwtTestDefaultKey , jwtTestEC256PublicKey }, nil
3738 }
3839 multipleLastKeyFunc jwt.Keyfunc = func (t * jwt.Token ) (interface {}, error ) {
39- return jwt.VerificationKeySet {Keys : []jwt.VerificationKey {jwtTestEC256PublicKey , jwtTestDefaultKey }}, nil
40+ keys := []jwt.VerificationKey {jwtTestEC256PublicKey , jwtTestDefaultKey }
41+ return jwt.VerificationKeySet [jwt.VerificationKey ]{Keys : keys }, nil
4042 }
4143 multipleFirstKeyFunc jwt.Keyfunc = func (t * jwt.Token ) (interface {}, error ) {
42- return jwt.VerificationKeySet {Keys : []jwt.VerificationKey {jwtTestDefaultKey , jwtTestEC256PublicKey }}, nil
44+ keys := []jwt.VerificationKey {jwtTestDefaultKey , jwtTestEC256PublicKey }
45+ return jwt.VerificationKeySet [jwt.VerificationKey ]{Keys : keys }, nil
4346 }
4447 multipleAltTypedKeyFunc jwt.Keyfunc = func (t * jwt.Token ) (interface {}, error ) {
45- return jwt.VerificationKeySet {Keys : []jwt.VerificationKey {jwtTestDefaultKey , jwtTestDefaultKey }}, nil
48+ keys := []jwt.VerificationKey {jwtTestDefaultKey , jwtTestDefaultKey }
49+ return jwt.VerificationKeySet [jwt.VerificationKey ]{Keys : keys }, nil
4650 }
4751 emptyVerificationKeySetFunc jwt.Keyfunc = func (t * jwt.Token ) (interface {}, error ) {
48- return jwt.VerificationKeySet {}, nil
52+ return jwt.VerificationKeySet [jwt. VerificationKey ] {}, nil
4953 }
5054)
5155
0 commit comments