garden-stream / garden

shared resources
0 stars 2 forks source link

Add expiresIn to web token. #20

Open NathanBland opened 7 years ago

NathanBland commented 7 years ago

Tokens should have an end date. Currently, they are valid forever.

More information here: https://github.com/auth0/node-jsonwebtoken#jwtsignpayload-secretorprivatekey-options-callback

The parts of garden that would need to be changed for this are minimal, mostly living in routes/auth.js