I have a NodeJs app hosted on Heroku. As part of Authentication, I want to open a browser window when user accesses the /login route.
I am using Node's "open" library for this, and passing the URL as parameter. While this works on local machine and Node opens the browser window(with that URL), but it doesn't, when hosted on Heroku.
So, I'd like to understand if there's any limitation with Heroku platform in performing such action,and what other steps should I take to resolve this issue.
I have tried open and opener libraries.
Sample code with opener library.
var opener = require("opener");
url = 'https://exampleapp.herokuapp.com';
opener(url);
return;