This involved cookie trasmitted between Curl and Node.js. You can use curl to complete the authorization and save the cookie to a file , then pass it to Node.js
Syntax like "curl -b from_nodejs_cookie -c to_nodejs_cookie"
Then load to_nodejs_cookie in your node.js code