MCPcopy
hub / github.com/golang-jwt/jwt / ClaimsValidator

Interface ClaimsValidator

validator.go:26–29  ·  validator.go::ClaimsValidator

ClaimsValidator is an interface that can be implemented by custom claims who wish to execute any additional claims validation based on application-specific logic. The Validate function is then executed in addition to the regular claims validation and any error returned is appended to the final valid

Source from the content-addressed store, hash-verified

24// return nil
25// }
26type ClaimsValidator interface {
27 Claims
28 Validate() error
29}
30
31// Validator is the core of the new Validation API. It is automatically used by
32// a [Parser] during parsing and can be modified with various parser options.

Implementers 2

Validatorvalidator.go
MyCustomClaimsvalidator_test.go

Calls

no outgoing calls

Tested by

no test coverage detected