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

Struct MyCustomClaims

validator_test.go:11–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9var ErrFooBar = errors.New("must be foobar")
10
11type MyCustomClaims struct {
12 Foo string `json:"foo"`
13 RegisteredClaims
14}
15
16func (m MyCustomClaims) Validate() error {
17 if m.Foo != "bar" {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected