From c4752f11244abbcdb6c16736f05de8e8ad8b1210 Mon Sep 17 00:00:00 2001 From: Matt Brzezinski Date: Fri, 21 Jun 2024 12:13:25 -0500 Subject: [PATCH] Proper reference to refreshThresholdMs in documentation --- docs/Configuration.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/Configuration.md b/docs/Configuration.md index a40cb7d1c..634b6b468 100644 --- a/docs/Configuration.md +++ b/docs/Configuration.md @@ -217,7 +217,7 @@ const kafka = new Kafka({ host: 'https://my-oauth-server.com', path: '/oauth/token', // Refresh the token 15 seconds before it expires - refreshThreshold: 15000, + refreshThresholdMs: 15000, }), }, }) @@ -271,8 +271,8 @@ If an authentication mechanism is not supported out of the box in KafkaJS, a cus mechanism can be introduced as a plugin: ```js -{ - sasl: { +{ + sasl: { mechanism: , authenticationProvider: ({ host, port, logger, saslAuthenticate }) => { authenticate: () => Promise } } @@ -477,4 +477,4 @@ const socketFactory = ({ host, port, ssl, onConnect }) => { return socket } -``` \ No newline at end of file +```