forked from mirror/jwt
updated ExampleNew with correct key type
This commit is contained in:
parent
7c18dce7b8
commit
fb5e9d4418
|
@ -18,7 +18,7 @@ func ExampleParse(myToken string, myLookupKey func(interface{}) (interface{}, er
|
|||
}
|
||||
}
|
||||
|
||||
func ExampleNew(mySigningKey string) (string, error) {
|
||||
func ExampleNew(mySigningKey []byte) (string, error) {
|
||||
// Create the token
|
||||
token := jwt.New(jwt.SigningMethodHS256)
|
||||
// Set some claims
|
||||
|
|
Loading…
Reference in New Issue