dwyl / learn-json-web-tokens

:closed_lock_with_key: Learn how to use JSON Web Token (JWT) to secure your next Web App! (Tutorial/Example with Tests!!)
MIT License
4.18k stars 254 forks source link

Adjusting expiration time to be 7 days #78

Closed emersonmellado closed 6 years ago

emersonmellado commented 6 years ago

Wow. Thanks @nelsonic. I didn't know about this doc.

Apparently they have a simpler way to set the Expiration by using a 7d notation. Check it out! :)

nelsonic commented 6 years ago

Yeah, noted the String "7d" for expiresIn. image

It's worth noting that this is a convenience of the jsonwebtoken Node Module and not part of the proposed standard. but this code works so your PR is good. 👍 Thanks again!