use a generic type parameter

This commit is contained in:
Mike Fridman 2024-08-02 08:55:42 -04:00
parent 62e504c281
commit 1378353032
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -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. // VerificationKeySet is a set of public or secret keys. It is used by the parser to verify a token.
type VerificationKeySet struct { type VerificationKeySet[T VerificationKey] struct {
Keys []VerificationKey Keys []T
} }
// Token represents a JWT Token. Different fields will be used depending on // Token represents a JWT Token. Different fields will be used depending on