forked from mirror/jwt
Updated to accept interface{} as supported by underlying Verify methods.
Needed to support precompiled public keys.
This commit is contained in:
parent
c0da491622
commit
e82659ca5b
2
jwt.go
2
jwt.go
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue