Skip to content

Commit

Permalink
Mark JWT middleware deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
aldas committed Dec 27, 2022
1 parent 0056cc8 commit a69727e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions middleware/jwt.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 {
Expand Down

0 comments on commit a69727e

Please sign in to comment.