Infosys interview question

What is the event loop in Node.js How do you handle authentication using a middleware