Azure functions Node Wrapper

I am trying to implement middleware that authenticates the token but all of the examples I found so far don’t work properly.
I tried to create middleware like: azure-functions-auth0/index.js at master · sandrinodimattia/azure-functions-auth0 · GitHub, but this solution does not work with Azure functions > 2.x anymore.

What I am looking for is a working example of a wrapper for my node Azure function 2.x export that will use “express-jwt”, verify the jwt before the function runs, add the req.auth variable, and not interfere with the function itself.

Any help will be appreciated.