ScienceUtsav Interview Question

What is Middleware, How do you authenticate user?