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
| 24 | // return nil |
| 25 | // } |
| 26 | type 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. |
no outgoing calls
no test coverage detected