Our app uses the usual short-lived access + refresh tokens to do a bunch of background services for users. This means that every now and then the services need to refresh the tokens.
We've run into an issue where 2 services try to refresh a token at the same time, thus resulting in an invalid token.
Is there a better way to generate a usable access token that doesn't require a refresh every hour?