mirror of
https://github.com/labstack/echo.git
synced 2025-01-12 01:22:21 +02:00
Mark JWT middleware deprecated
This commit is contained in:
parent
0056cc8ec0
commit
a69727e2b9
@ -154,6 +154,8 @@ var (
|
|||||||
//
|
//
|
||||||
// See: https://jwt.io/introduction
|
// See: https://jwt.io/introduction
|
||||||
// See `JWTConfig.TokenLookup`
|
// See `JWTConfig.TokenLookup`
|
||||||
|
//
|
||||||
|
// Deprecated: Please use https://github.com/labstack/echo-jwt instead
|
||||||
func JWT(key interface{}) echo.MiddlewareFunc {
|
func JWT(key interface{}) echo.MiddlewareFunc {
|
||||||
c := DefaultJWTConfig
|
c := DefaultJWTConfig
|
||||||
c.SigningKey = key
|
c.SigningKey = key
|
||||||
@ -162,6 +164,8 @@ func JWT(key interface{}) echo.MiddlewareFunc {
|
|||||||
|
|
||||||
// JWTWithConfig returns a JWT auth middleware with config.
|
// JWTWithConfig returns a JWT auth middleware with config.
|
||||||
// See: `JWT()`.
|
// See: `JWT()`.
|
||||||
|
//
|
||||||
|
// Deprecated: Please use https://github.com/labstack/echo-jwt instead
|
||||||
func JWTWithConfig(config JWTConfig) echo.MiddlewareFunc {
|
func JWTWithConfig(config JWTConfig) echo.MiddlewareFunc {
|
||||||
// Defaults
|
// Defaults
|
||||||
if config.Skipper == nil {
|
if config.Skipper == nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user