Skip to content

Conversation

rajibchy
Copy link

@rajibchy rajibchy commented Mar 2, 2025

There is an issue in fast-jwt where the exp, nbf, and iat claims are incorrectly calculated when expiresIn is provided in seconds. Specifically, the issue arises when payload.iat is in milliseconds, but expiresIn is in seconds, which results in incorrect expiration calculations.

Issue: Incorrect Handling of Timestamps - 549

@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Mar 2, 2025
Copy link
Contributor

github-actions bot commented Mar 2, 2025

No linked issues found. Please add the corresponding issues in the pull request description.
Use GitHub automation to close the issue when a PR is merged

@dosubot dosubot bot added the bug Something isn't working label Mar 2, 2025
@rajibchy rajibchy closed this Mar 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant