jwtk / njwt

Node.js JWT support
Apache License 2.0
431 stars 49 forks source link

how to set expired time in jwt? #92

Open tytom2003 opened 1 year ago

tytom2003 commented 1 year ago

i tried exp: 668747405, exp: '12h' or other method. i can't change expired time in the jwt. How to set expired time in jwt?

shuowu-okta commented 1 year ago

@tytom2003 Have you tried https://github.com/jwtk/njwt#expiration-claim?