For middleware library routes, add a req.user check along with process.ensure for grabbing credentials.