From ddb69eb7240bd16d54081263c1870c8d77d5cafd Mon Sep 17 00:00:00 2001 From: Ivasan7 <39991502+Ivasan7@users.noreply.github.com> Date: Fri, 26 Aug 2022 20:50:25 +0200 Subject: [PATCH] feature:fix middleware user extraction --- _examples/jwt/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_examples/jwt/main.go b/_examples/jwt/main.go index c655b7a..ef62d03 100644 --- a/_examples/jwt/main.go +++ b/_examples/jwt/main.go @@ -39,7 +39,7 @@ func main() { } func createToken(w http.ResponseWriter, r *http.Request) { - u := auth.User(r) + _, u, _ := s.strategy.AuthenticateRequest(r) token, _ := jwt.IssueAccessToken(u, keeper) body := fmt.Sprintf("token: %s \n", token) w.Write([]byte(body))