7 lines
		
	
	
		
			171 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			7 lines
		
	
	
		
			171 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| const alwaysAuthenticatedWhenLocalhost = (req, res, next) => {
 | |
|   req.isAuthenticated = () => true;
 | |
|   return next();
 | |
| };
 | |
| 
 | |
| module.exports = alwaysAuthenticatedWhenLocalhost;
 |