We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0056cc8 commit a69727eCopy full SHA for a69727e
middleware/jwt.go
@@ -154,6 +154,8 @@ var (
154
//
155
// See: https://jwt.io/introduction
156
// See `JWTConfig.TokenLookup`
157
+//
158
+// Deprecated: Please use https://github.com/labstack/echo-jwt instead
159
func JWT(key interface{}) echo.MiddlewareFunc {
160
c := DefaultJWTConfig
161
c.SigningKey = key
@@ -162,6 +164,8 @@ func JWT(key interface{}) echo.MiddlewareFunc {
162
164
163
165
// JWTWithConfig returns a JWT auth middleware with config.
166
// See: `JWT()`.
167
168
169
func JWTWithConfig(config JWTConfig) echo.MiddlewareFunc {
170
// Defaults
171
if config.Skipper == nil {
0 commit comments