How to implement OAuth authentication with node.js on a local machine? (node-webkit)

I'm trying to implement OAuth authentication in node.js for a project of mine. I'm trying to authenticate to the Twitter API for Example.

The problem is, the whole thing runs as a local app in node-webkit and all the OAuth sites need some kind of callback URl where they deliver the authentication tokens. Because the App runs locally i can't just specify any URl and get it. If i for example specify localhost, the sites naturally try to callback at their own lo-interface.

Is there any Solution to this?