Intermittent 401 unauthorized response


I’m currently trying to put together a Spring Boot server protected by Auth0. Im using JwtWebSecurityConfigurer to protect resources.

If a client logs in and the makes and immediate request using the access token it’s received then I get 401 Unauthorized errors. It seems intermittent and putting a delay in my code of a few seconds seems to resolve the issue.

I can’t see any obvious race condition. Is there any throttling or delay imposed on the Auth0 side? I’m using the free service if that matters.