I am using the JWT Auth Bundle with Symfony. It takes over 3 seconds for just one request.
I used Xdebug to do some profiling and the culprit is Auth0\SDK\Helpers\JWKFetcher->fetchKeys
Before using Auth0 I was using my own in-house JWT solution which was very fast. Is there a way to improve the performance of this bundle? It is unusable for me unless I can get sub-second response time, and I would of course prefer that it not make a call to auth0 servers if possible.
The delay is happening due to the fact that the call will fetch the public key in order to validate it, the SDK should cache this therefore any subsequent requests will not take this long. Alternatively, you can fetch the public key and store it in a file and use that file.
I’m unfortunately at the point where I can’t wait much longer on this. My app was working without auth0 with my own code for handling JWT, and now it is not working due to the delay in fetching the public key. I can give this another couple of business days to resolve, but after that I have to consider auth0 to not be a viable solution. Any help is appreciated.