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

Feature request: Support time in string format similar to jsonwebtoken #363

Closed
rubiin opened this issue Aug 9, 2023 · 1 comment · Fixed by #364
Closed

Feature request: Support time in string format similar to jsonwebtoken #363

rubiin opened this issue Aug 9, 2023 · 1 comment · Fixed by #364
Assignees

Comments

@rubiin
Copy link
Contributor

rubiin commented Aug 9, 2023

expiresIn: expressed in seconds or a string describing a time span vercel/ms.

Eg: 60, "2 days", "10h", "7d". A numeric value is interpreted as a seconds count. If you use a string be sure you provide the time units (days, hours, etc), otherwise milliseconds unit is used by default ("120" is equal to "120ms").

This will improve the DX as we dont have to convert the time to ms everytime manually

cc: Fastify jwt uses https://github.com/lukeed/ms underneath

@github-actions
Copy link
Contributor

🎉 This issue has been resolved in version 3.2.0 🎉

The release is available on:

Your optic bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants