Updated to accept interface{} as supported by underlying Verify methods.

Needed to support precompiled public keys.
This commit is contained in:
TommyO 2014-09-29 14:00:25 -04:00
parent c0da491622
commit e82659ca5b
1 changed files with 1 additions and 1 deletions

2
jwt.go
View File

@ -50,7 +50,7 @@ func New(method SigningMethod) *Token {
} }
// Get the complete, signed 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 sig, sstr string
var err error var err error
if sstr, err = t.SigningString(); err != nil { if sstr, err = t.SigningString(); err != nil {