Skip to content

Commit

Permalink
Allow interface{} as key for JWT middleware argument (labstack#957)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickhudkins authored and vishr committed Jun 19, 2017
1 parent 18ccbf3 commit 7676f85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middleware/jwt.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7676f85

Please sign in to comment.