Skip to content

Commit

Permalink
use a generic type parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
mfridman committed Aug 2, 2024
1 parent 62e504c commit 1378353
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions token.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1378353

Please sign in to comment.