Middleware

noun /ˈmɪdəlwɛər/

Software that sits between two systems, intercepting and processing requests or responses. In web frameworks, middleware typically handles auth, logging, or request parsing.

"The authentication middleware validates the JWT token on every protected route before the request reaches the controller."