Integrate in the jwt filter to make sure requests are valid.