[SOLVED] Using passport/session data in header partial, EJS

[SOLVED] Using passport/session data in header partial, EJS
0.0 0

#1

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?


#2

I solved this. I had to send the req.user with each route in which I wanted the header to show the user data.