Hey there.
This is a nice library and it was very easy to setup! Thank you for your work.
That said I'm always a little concerned when a library requires adding a middleware. On this particular library it seems particularly out of place. Would you be open to a refactoring where the middleware is eliminated? I can do the refactoring myself and send you a pull request if you are open to the idea