Skip to content

Commit

Permalink
fix: use ParseFromRequest instead of ParseFromRequestWithClaims (#771)
Browse files Browse the repository at this point in the history
ParseFromRequestWithClaims is DEPRECATED
  • Loading branch information
dom3k authored and hacdias committed Jun 6, 2019
1 parent 425ec27 commit ffd8a3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http/auth.go
Expand Up @@ -54,7 +54,7 @@ func withUser(fn handleFunc) handleFunc {
}

var tk authToken
token, err := request.ParseFromRequestWithClaims(r, &extractor{}, &tk, keyFunc)
token, err := request.ParseFromRequest(r, &extractor{}, keyFunc, request.WithClaims(&tk))

if err != nil || !token.Valid {
return http.StatusForbidden, nil
Expand Down

0 comments on commit ffd8a3a

Please sign in to comment.