From 13783530328b53a31b0851326f7e8326aeadad7d Mon Sep 17 00:00:00 2001 From: Mike Fridman Date: Fri, 2 Aug 2024 08:55:42 -0400 Subject: [PATCH] use a generic type parameter --- token.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/token.go b/token.go index 352873a..15cbce2 100644 --- a/token.go +++ b/token.go @@ -21,8 +21,8 @@ type VerificationKey interface { } // VerificationKeySet is a set of public or secret keys. It is used by the parser to verify a token. -type VerificationKeySet struct { - Keys []VerificationKey +type VerificationKeySet[T VerificationKey] struct { + Keys []T } // Token represents a JWT Token. Different fields will be used depending on