I'm getting token outside of the kafka client and plan to refresh it using this token provider approach. I was trying to find the same mechanism in Node-RdKafka but with no success. I've also tried oauthbearer_token_refresh_cb but it looks like it's called much later than initial connect() call.
Please, let me know if it's even possible with the latest version at all
I'm trying to migrate my KafkaJS code to Node-RdKafka but I couldn't find an equivalent.
KafkaJS snippet:
I'm getting token outside of the kafka client and plan to refresh it using this token provider approach. I was trying to find the same mechanism in Node-RdKafka but with no success. I've also tried
oauthbearer_token_refresh_cb
but it looks like it's called much later than initialconnect()
call.Please, let me know if it's even possible with the latest version at all