ParseWithClaims is a shortcut for NewParser().ParseWithClaims(). Note: If you provide a custom claim implementation that embeds one of the standard claims (such as RegisteredClaims), make sure that a) you either embed a non-pointer version of the claims or b) if you are using a pointer, allocate th
(tokenString string, claims Claims, keyFunc Keyfunc, options ...ParserOption)
| 266 | // allocate the proper memory for it before passing in the overall claims, |
| 267 | // otherwise you might run into a panic. |
| 268 | func ParseWithClaims(tokenString string, claims Claims, keyFunc Keyfunc, options ...ParserOption) (*Token, error) { |
| 269 | return NewParser(options...).ParseWithClaims(tokenString, claims, keyFunc) |
| 270 | } |
nothing calls this directly
no test coverage detected