From e82659ca5b4cbf520799d1194834fb05b5385965 Mon Sep 17 00:00:00 2001 From: TommyO Date: Mon, 29 Sep 2014 14:00:25 -0400 Subject: [PATCH] Updated to accept interface{} as supported by underlying Verify methods. Needed to support precompiled public keys. --- jwt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jwt.go b/jwt.go index 1cd8b9a..628bcb5 100644 --- a/jwt.go +++ b/jwt.go @@ -50,7 +50,7 @@ func New(method SigningMethod) *Token { } // Get the complete, signed token -func (t *Token) SignedString(key []byte) (string, error) { +func (t *Token) SignedString(key interface{}) (string, error) { var sig, sstr string var err error if sstr, err = t.SigningString(); err != nil {