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

Function WithClaims

request/request.go:59–63  ·  view source on GitHub ↗

WithClaims parses with custom claims

(claims jwt.Claims)

Source from the content-addressed store, hash-verified

57
58// WithClaims parses with custom claims
59func WithClaims(claims jwt.Claims) ParseFromRequestOption {
60 return func(p *fromRequestParser) {
61 p.claims = claims
62 }
63}
64
65// WithParser parses using a custom parser
66func WithParser(parser *jwt.Parser) ParseFromRequestOption {

Callers 2

restrictedHandlerFunction · 0.92

Calls

no outgoing calls

Tested by 1

restrictedHandlerFunction · 0.74