added support for immediate authorization
+support in the node-js example