Sign in issues when fetching Apple Public Keys.

When I try to fetch the public Apple keys from https://appleid.apple.com/auth/keys to check a user's token signature for Apple Sign in, I receive a timeout exception after 100s. Has anyone recently experienced the same problem? Does anyone have any idea what could be the problem? Although it doesn't happen all the time, there are some hours when it happens so frequently that it disrupts the Sign in process.

We usually see only 2-3 of these a month but in the last 3 days it has gone up a lot. It still works most of the time but can be bad especially if the user was creating a new account in our app when this happens. It's not super-clear, but it looks like they are recommending to always fetch this fresh since they might change the keys. We are going to increase our timeout for this to 10s (it was 5s), and cache the result for 10m but re-fetch it if the key we are looking for isn't in cache.

Sign in issues when fetching Apple Public Keys.
 
 
Q