If you use the signer or client in multiple threads, updates to the signature may not be locked and generated too frequently, which can result in Apple rejecting it with '429 The provider token is being updated too frequently.' This pull request fixes the issue, albeit in an ugly but effective way.
How Has This Been Tested?
There is a test function named test_signature_caching_in_multithreads.
Description
If you use the signer or client in multiple threads, updates to the signature may not be locked and generated too frequently, which can result in Apple rejecting it with '429 The provider token is being updated too frequently.' This pull request fixes the issue, albeit in an ugly but effective way.
How Has This Been Tested?
There is a test function named
test_signature_caching_in_multithreads
.Due Dilligence