From fb5e9d4418f11916827343a3687bc2d414a1becb Mon Sep 17 00:00:00 2001 From: Dave Grijalva Date: Tue, 13 Jan 2015 21:31:08 -0800 Subject: [PATCH] updated ExampleNew with correct key type --- example_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example_test.go b/example_test.go index bfd7271..edb48e4 100644 --- a/example_test.go +++ b/example_test.go @@ -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