While it works in the sense that middleware handler will check the token in the header, I don't know how to access the provides stuff in the handlers. In the handler,
the params contains all the other params to the api endpoint like urlParams or payload that I defined in the endpoint, but not the provides that comes from the middleware.