From 7676f85ef9d4a50797e17b30c4b0b1cb3c7c532a Mon Sep 17 00:00:00 2001 From: Nick Hudkins Date: Mon, 19 Jun 2017 18:42:27 -0400 Subject: [PATCH] Allow interface{} as key for JWT middleware argument (#957) --- middleware/jwt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middleware/jwt.go b/middleware/jwt.go index 5d2072e7..b70c5b15 100644 --- a/middleware/jwt.go +++ b/middleware/jwt.go @@ -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)