diff --git a/README.md b/README.md index 43f24aa..6991306 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ key := []byte(`secret`) signer, err := jwt.NewSignerHS(jwt.HS256, key) checkErr(err) -// create claims (you can create your own, see: Example_BuildUserClaims) +// create claims (you can create your own, see: ExampleBuilder_withUserClaims) claims := &jwt.RegisteredClaims{ Audience: []string{"admin"}, ID: "random-unique-string", diff --git a/example_test.go b/example_test.go index dbfa5ba..cd0bf11 100644 --- a/example_test.go +++ b/example_test.go @@ -14,7 +14,7 @@ func Example_signAndVerify() { signer, err := jwt.NewSignerHS(jwt.HS256, key) checkErr(err) - // create claims (you can create your own, see: Example_BuildUserClaims) + // create claims (you can create your own, see: ExampleBuilder_withUserClaims) claims := &jwt.RegisteredClaims{ Audience: []string{"admin"}, ID: "random-unique-string",