diff --git a/example_test.go b/example_test.go index 0df3124..932ee4c 100644 --- a/example_test.go +++ b/example_test.go @@ -124,6 +124,9 @@ type MyCustomClaims struct { jwt.RegisteredClaims } +// Ensure we implement [jwt.ClaimsValidator] at compile time so we know our custom Validate method is used. +var _ jwt.ClaimsValidator = (*MyCustomClaims)(nil) + // Validate can be used to execute additional application-specific claims // validation. func (m MyCustomClaims) Validate() error {