Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure cache with TimeUnit instead of Duration #140

Merged
merged 1 commit into from Feb 1, 2022

Conversation

jimmyjames
Copy link
Contributor

As reported in #136, the introduction of support for Duration causes an issue when using com.google.guava:guava:30.1.1-android, as the Android version does not support configuration with Duration (the comment here suggests it should be added). In this case we can just invert the constructor delegation of GuavaCachedJwkProvider to call Guava using TimeUnit.

In my tests using a project with a dependency on com.google.guava:guava:30.1.1-android, this change fixed the reported issue.

@jimmyjames jimmyjames added this to the v0-Next milestone Jan 28, 2022
@jimmyjames jimmyjames requested a review from a team as a code owner January 28, 2022 20:57
Copy link
Contributor

@poovamraj poovamraj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍 Neat solution.

@jimmyjames jimmyjames merged commit daf0c34 into master Feb 1, 2022
@jimmyjames jimmyjames modified the milestones: v0-Next, 0.20.2 Feb 1, 2022
@jimmyjames jimmyjames mentioned this pull request Feb 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants