DEV Community

Discussion on: Understand JWT in 3 minutes

Collapse
 
joeclarkphd profile image
Joseph Clark

I would suggest that setting an expiration date less than 10 years in the future is probably a best practice.

Collapse
 
exadra37 profile image
Paulo Renato

I would say that you should always set one, that expires in some minutes, and use refresh tokens to extend the login session for some more time ;)