From e94655a9ac5e6a129d9026d20f4cef5b71b71b8b Mon Sep 17 00:00:00 2001 From: Moosa Shah Date: Sun, 13 Apr 2025 00:57:01 +0100 Subject: [PATCH] Update middleware.md --- pages/middleware.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/middleware.md b/pages/middleware.md index c78a094..5a555c1 100644 --- a/pages/middleware.md +++ b/pages/middleware.md @@ -775,7 +775,7 @@ func router() http.Handler { // the provided authenticator middleware, but you can write your // own very easily, look at the Authenticator method in jwtauth.go // and tweak it, its not scary. - r.Use(jwtauth.Authenticator) + r.Use(jwtauth.Authenticator(tokenAuth)) r.Get("/admin", func(w http.ResponseWriter, r *http.Request) { _, claims, _ := jwtauth.FromContext(r.Context())