Hono Jwt helper exp params #3790
Unanswered
VikramNagwal
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hono's JWT helper takes
exp
,iat
, andnbf
as parameters along with apayload
option. Theexp
parameter only accepts numbers. My question is: how should I provide these numbers? Is the default unit seconds? For instance, if I want to set the expiration time to 15 minutes, should I use900
or15
?For example:
sign({ payload, exp: 900 }, secret)
.I apologize if I’m missing something.
Beta Was this translation helpful? Give feedback.
All reactions