Hi Marcelo,
You can look at using a plugin to pass digest auth for your REST API commands in node.js.
Michelle