updated ExampleNew with correct key type

This commit is contained in:
Dave Grijalva 2015-01-13 21:31:08 -08:00
parent 7c18dce7b8
commit fb5e9d4418
1 changed files with 1 additions and 1 deletions

View File

@ -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 // Create the token
token := jwt.New(jwt.SigningMethodHS256) token := jwt.New(jwt.SigningMethodHS256)
// Set some claims // Set some claims