Skip to content

Commit 1378353

Browse files
committed
use a generic type parameter
1 parent 62e504c commit 1378353

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

token.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ type VerificationKey interface {
2121
}
2222

2323
// VerificationKeySet is a set of public or secret keys. It is used by the parser to verify a token.
24-
type VerificationKeySet struct {
25-
Keys []VerificationKey
24+
type VerificationKeySet[T VerificationKey] struct {
25+
Keys []T
2626
}
2727

2828
// Token represents a JWT Token. Different fields will be used depending on

0 commit comments

Comments
 (0)