How middlewares work in Auth0 ?

The first code snippet in the Build The Back-End section contains the definition of the authCheck middleware assuming that was what you’re referring to.