From a69727e2b95ed346dbdcaf2f194aedab41baa779 Mon Sep 17 00:00:00 2001 From: toimtoimtoim Date: Tue, 27 Dec 2022 21:08:37 +0200 Subject: [PATCH] Mark JWT middleware deprecated --- middleware/jwt.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/middleware/jwt.go b/middleware/jwt.go index ef6ad4ebc..bd628264e 100644 --- a/middleware/jwt.go +++ b/middleware/jwt.go @@ -154,6 +154,8 @@ var ( // // See: https://jwt.io/introduction // See `JWTConfig.TokenLookup` +// +// Deprecated: Please use https://github.com/labstack/echo-jwt instead func JWT(key interface{}) echo.MiddlewareFunc { c := DefaultJWTConfig c.SigningKey = key @@ -162,6 +164,8 @@ func JWT(key interface{}) echo.MiddlewareFunc { // JWTWithConfig returns a JWT auth middleware with config. // See: `JWT()`. +// +// Deprecated: Please use https://github.com/labstack/echo-jwt instead func JWTWithConfig(config JWTConfig) echo.MiddlewareFunc { // Defaults if config.Skipper == nil {