If I’m using headers, they are served with every page load. If I want to display the users name in the header, how do I route the user data to the page?
[SOLVED] Using passport/session data in header partial, EJS
I solved this. I had to send the req.user with each route in which I wanted the header to show the user data.