Files
vinlottis/api/middleware/alwaysAuthenticatedWhenLocalhost.js

7 lines
171 B
JavaScript

const alwaysAuthenticatedWhenLocalhost = (req, res, next) => {
req.isAuthenticated = () => true;
return next();
};
module.exports = alwaysAuthenticatedWhenLocalhost;