diff --git a/hmac_example_test.go b/hmac_example_test.go index 8fb5678..0027831 100644 --- a/hmac_example_test.go +++ b/hmac_example_test.go @@ -51,6 +51,8 @@ func ExampleParse_hmac() { if _, ok := token.Method.(*jwt.SigningMethodHMAC); !ok { return nil, fmt.Errorf("Unexpected signing method: %v", token.Header["alg"]) } + + // hmacSampleSecret is a []byte containing your secret, e.g. []byte("my_secret_key") return hmacSampleSecret, nil })