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

[SDK-3160] Replace com.auth0.jwt.interfaces.Clock with java.time.Clock #532

Merged
merged 1 commit into from
Mar 2, 2022

Conversation

jimmyjames
Copy link
Contributor

Replaces usages of com.auth0.jwt.interfaces.Clock with java.time.Clock, which simplifies testing through the ability to inject a clock instance for testing.

Note that this is a breaking change, as the JWTVerifier#build(com.auth0.jwt.interfaces.Clock clock) method is public for testing purposes (the Verification interface does not expose this method, only JWTVerifier#build()).

A separate PR will follow that removes the Clock interface and ClockImpl class, as they will no longer have any usages following this change.

@jimmyjames jimmyjames added this to the v4-Beta milestone Mar 1, 2022
@jimmyjames jimmyjames requested a review from a team as a code owner March 1, 2022 16:00
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.

LGTM 👍

@jimmyjames jimmyjames merged commit 1ccecd4 into v4-dev Mar 2, 2022
@jimmyjames jimmyjames deleted the remove-internal-clock branch March 17, 2022 13:12
@poovamraj poovamraj modified the milestones: v4-Beta, 4.0.0-beta.0 May 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants