Checklist
Describe the problem you'd like to have solved
Some jwk providers rotate their keys (AWS for example), their documentation says that if issuer matches but keyId is wrong, to get latest JWK keys. This is not possible with the current caching of this library.
https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-using-tokens-verifying-a-jwt.html
Describe the ideal solution
Perhaps there should be an exposed function to drop the cache or try to pull latest before throwing an Exception?
Alternatives and current workarounds
No response
Additional context
No response
Checklist
Describe the problem you'd like to have solved
Some jwk providers rotate their keys (AWS for example), their documentation says that if issuer matches but keyId is wrong, to get latest JWK keys. This is not possible with the current caching of this library.
https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-using-tokens-verifying-a-jwt.html
Describe the ideal solution
Perhaps there should be an exposed function to drop the cache or try to pull latest before throwing an Exception?
Alternatives and current workarounds
No response
Additional context
No response