Hi Alexandro,
Sorry for replying so late....
I can point you at the update (just rebased onto latest 17):
I use this by sending a message { username:'user', password:'pass' } to an mqtt publish node before I start using MQTT in the flow. The message is does nothing else but change the credentials...
(in my case, I have a user 'jwt', and send a password which is a JWT defining the user access to mosca, then decode the JWT in mosca to enable login and publish./subscribe rights; it gives me huge flexibility in granular authorisation).
A pull request is of course available; but I think the team would consider that if we did this for MQTT, it should be a general thing for all credential-based coms, and they are not ready for that yet....
(but do let me know - I will issue it in a flash! and it's now pretty well tested).
best regards,
Simon