Skip to content

Commit

Permalink
Updated to accept interface{} as supported by underlying Verify methods.
Browse files Browse the repository at this point in the history
Needed to support precompiled public keys.
  • Loading branch information
tommyo committed Sep 29, 2014
1 parent c0da491 commit e82659c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jwt.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e82659c

Please sign in to comment.