setExpirationTime format #373
Answered
by
panva
bradisbell
asked this question in
Q&A
-
The documentation (https://github.com/panva/jose/blob/8d016fdb5825dc0610707b142e898981bf1e5a47/docs/classes/jwt_sign.SignJWT.md#setexpirationtime) doesn't specify the format for strings. I see in the example, there is something like |
Beta Was this translation helpful? Give feedback.
Answered by
panva
Mar 3, 2022
Replies: 1 comment 1 reply
-
seconds, minutes, hours, days, weeks, years and common abbreviations of those, if you get it wrong it'll tell you. https://github.com/panva/jose/blob/v4.5.1/src/lib/secs.ts |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
bradisbell
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
seconds, minutes, hours, days, weeks, years and common abbreviations of those, if you get it wrong it'll tell you.
https://github.com/panva/jose/blob/v4.5.1/src/lib/secs.ts