Open alanshaw opened 9 years ago
@alanshaw much betterer! :+1: Do you have time to submit as PR?
PR out #78
Gents, my reading of this
SO Question/Answer:
https://stackoverflow.com/questions/28738168/how-to-create-jwt-exp-style-date-in-javascript
is that we need to divide by 1000 to convert to seconds for exp
...
I think we solved it from an expiration point of view by adding the '7d' option.
What I see now is that we have travis-ci not happy about that change and I'm not sure how to debug it.
PR #79 out for test fix. green build this time :)
@emersonmellado thanks again for making time to fix this! 👍
The intention is to expire in 7 days, but the code doesn't provide a number thats 7 days ahead of now...far from it! https://github.com/dwyl/learn-json-web-tokens/blob/master/example/lib/helpers.js#L39
I used this instead: