diff --git a/site2/docs/security-jwt.md b/site2/docs/security-jwt.md index 46cf2e6925ec7..ff2e99efe8701 100644 --- a/site2/docs/security-jwt.md +++ b/site2/docs/security-jwt.md @@ -54,7 +54,7 @@ You can use tokens to authenticate the following Pulsar clients. PulsarClient client = PulsarClient.builder() .serviceUrl("pulsar://broker.example.com:6650/") .authentication( - AuthenticationFactory.token("eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJKb2UifQ.ipevRNuRP6HflG8cFKnmUPtypruRC4fb1DWtoLL62SY") + AuthenticationFactory.token("eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJKb2UifQ.ipevRNuRP6HflG8cFKnmUPtypruRC4fb1DWtoLL62SY")) .build(); ``` @@ -67,7 +67,7 @@ PulsarClient client = PulsarClient.builder() AuthenticationFactory.token(() -> { // Read token from custom source return readToken(); - }) + })) .build(); ```