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