Skip to content

#60 Add expireAfter functionality to JWT Builder #883

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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
#60 Fix typo in JwtBuilder comments
A typographical error in the comments of the 'exp' function in JwtBuilder was corrected. The phrase "specified it if" was changed to "specified if it", making the comments clearer and easier to understand.
  • Loading branch information
pveeckhout committed Jan 10, 2024

Verified

This commit was signed with the committer’s verified signature.
pveeckhout Pieter Van Eeckhout
commit a6a79508b0fe6f606ce164d7740c18d916f383c1
2 changes: 1 addition & 1 deletion api/src/main/java/io/jsonwebtoken/JwtBuilder.java
Original file line number Diff line number Diff line change
@@ -589,7 +589,7 @@ public interface JwtBuilder extends ClaimsMutator<JwtBuilder> {
/**
* Sets the JWT Claims <a href="https://www.rfc-editor.org/rfc/rfc7519.html#section-4.1.4">
* <code>exp</code></a> (expiration) claim. It will set the expiration Date to the issuedAt time plus the duration
* specified it if has been set, otherwise it will use the current system time plus the duration specified
* specified if it has been set, otherwise it will use the current system time plus the duration specified
*
* <p>A JWT obtained after this timestamp should not be used.</p>
*