Skip to content

Add support for expiration leeway#264

Merged
Widcket merged 3 commits intomasterfrom
feat/expires-in
Apr 2, 2025
Merged

Add support for expiration leeway#264
Widcket merged 3 commits intomasterfrom
feat/expires-in

Conversation

@Widcket
Copy link
Contributor

@Widcket Widcket commented Apr 1, 2025

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

📋 Changes

This PR adds a new public expires(in:) method that checks if the JWT will expire in the given time period (in seconds) using the exp claim.

Support for expiration leeway is already available in JWTDecode.Android.

📎 References

Closes #221

🎯 Testing

@Widcket Widcket requested a review from a team as a code owner April 1, 2025 22:22
@Widcket Widcket added the review:small Small review label Apr 1, 2025
@Widcket Widcket enabled auto-merge (squash) April 1, 2025 22:24
@pmathew92 pmathew92 closed this Apr 2, 2025
auto-merge was automatically disabled April 2, 2025 05:20

Pull request was closed

@pmathew92 pmathew92 reopened this Apr 2, 2025
@Widcket Widcket enabled auto-merge (squash) April 2, 2025 09:52
@Widcket Widcket merged commit c00978d into master Apr 2, 2025
12 checks passed
@Widcket Widcket deleted the feat/expires-in branch April 2, 2025 12:01
@Widcket Widcket mentioned this pull request Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review:small Small review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing leeway as present on the Android SDK

2 participants