Expose the client in the middleware object.