>On every request i get a 401 Unauthorized and I dont know what I am doing wrong.
Are you getting redirected to the UAA Logon? Did you put a web module as a route in front of your node.js module? Its perfectly normal to get a 401 unauthorized if you access the node.js module directly.