I am trying to access a passport protected page of my Express.js app with a Phantom.js script.
How can I simulate a logged in user w
using javascript, you should be able to fill in your login fields and submit. (simulating a user login, not trying to recreate a login cookie)
that would probably be your best bet.
for how to fill in forms, see: How to fill in form field, and submit, using javascript? Automatic form fill using javascript