From 3f3d051c4212b797d473fe58bb1057ed6163c8dc Mon Sep 17 00:00:00 2001 From: what Date: Mon, 29 Jan 2024 17:25:48 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=20=E7=BB=9F=E4=B8=80=20Http=20=E4=B8=AD?= =?UTF-8?q?=E9=97=B4=E4=BB=B6=E5=91=BD=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jwt_auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jwt_auth.go b/jwt_auth.go index 3530a9f..c404cdb 100644 --- a/jwt_auth.go +++ b/jwt_auth.go @@ -8,7 +8,7 @@ import ( ) type JWTAuth interface { - Authenticator(container *do.Injector) func(next http.Handler) http.Handler + HttpMiddleware(container *do.Injector) func(next http.Handler) http.Handler Encode(claims map[string]interface{}) (token string, err error) Decode(token string) (jwt.Token, error) }