Assuming there is a req.user is throwing an error when a user is not authenticated. I've added a simple work-around for this, to get either the req.user or {} if that does not exist, and make the debug check against that. Fixes #21
Yes, this doesn't actually seem to do anything, it just declares an un-used variable. Also that debug expression already checks whether req.user exists and therefore doesn't throw if it doesn't exist.
Assuming there is a
req.user
is throwing an error when a user is not authenticated. I've added a simple work-around for this, to get either thereq.user
or{}
if that does not exist, and make the debug check against that. Fixes #21