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) }