at line 154 on lib/middleware/authenticator check if res.send exists and if yes use it to prevent systax error on express
at line 154 on lib/middleware/authenticator check if res.send exists and if yes use it to prevent systax error on express