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

Function ParseFromRequestWithClaims

request/request.go:45–47  ·  view source on GitHub ↗

ParseFromRequestWithClaims is an alias for ParseFromRequest but with custom Claims type. Deprecated: use ParseFromRequest and the WithClaims option

(req *http.Request, extractor Extractor, claims jwt.Claims, keyFunc jwt.Keyfunc)

Source from the content-addressed store, hash-verified

43//
44// Deprecated: use ParseFromRequest and the WithClaims option
45func ParseFromRequestWithClaims(req *http.Request, extractor Extractor, claims jwt.Claims, keyFunc jwt.Keyfunc) (token *jwt.Token, err error) {
46 return ParseFromRequest(req, extractor, keyFunc, WithClaims(claims))
47}
48
49type fromRequestParser struct {
50 req *http.Request

Callers 1

TestParseRequestFunction · 0.85

Calls 2

ParseFromRequestFunction · 0.85
WithClaimsFunction · 0.85

Tested by 1

TestParseRequestFunction · 0.68