1
0
mirror of https://github.com/labstack/echo.git synced 2024-12-24 20:14:31 +02:00

Allow interface{} as key for JWT middleware argument (#957)

This commit is contained in:
Nick Hudkins 2017-06-19 18:42:27 -04:00 committed by Vishal Rana
parent 18ccbf35d8
commit 7676f85ef9

View File

@ -77,7 +77,7 @@ var (
//
// See: https://jwt.io/introduction
// See `JWTConfig.TokenLookup`
func JWT(key []byte) echo.MiddlewareFunc {
func JWT(key interface{}) echo.MiddlewareFunc {
c := DefaultJWTConfig
c.SigningKey = key
return JWTWithConfig(c)