chingu-voyages / v42-bears-team-34

Add-project-description-here | Voyage-42 | https://chingu.io/ | Twitter: https://twitter.com/ChinguCollabs
1 stars 0 forks source link

Complete JW Token expiry, renewal #58

Open davideastmond opened 1 year ago

davideastmond commented 1 year ago
Alfrederson commented 1 year ago

If you set the JWT duration to like 60s, then you can see that "too old" tokens aren't accepted. Renewal can be done with a new route which just returns the same token but with a new expiry date + obviously new signature. On it.