I am working on adding authentication to a Node/Express site. My authentication is using passport. Authentication works fine for routes but allows a user to guess a url and directly access an image/video/etc. without logging in.
How can I prevent this? I've searched over the documentation on express and passport but am not seeing any solutions?