From ffd8a3a63728f2681280b7adcc2e7f3ff99e2a71 Mon Sep 17 00:00:00 2001 From: dom3k Date: Thu, 6 Jun 2019 13:22:04 +0200 Subject: [PATCH] fix: use ParseFromRequest instead of ParseFromRequestWithClaims (#771) ParseFromRequestWithClaims is DEPRECATED --- http/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http/auth.go b/http/auth.go index 3cd84b5f..5ff32a70 100644 --- a/http/auth.go +++ b/http/auth.go @@ -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