DEV Community

Discussion on: Remaining Stateless - JWT + Cookies in Node JS(REST)

Collapse
 
lvizcaya profile image
Leonardo Vizcaya Savchenko

This is really how I am working, the JWT with a very short expiration time stored in memory, and the refresh token as you explain only to renew the JWT. Good Post, greetings.

Collapse
 
mr_cea profile image
Ogbonna Basil

Thanks Leonardo. I have looked at storing jwt in memory in the frontend and saving refresh token in http only cookie and i think it is the most optimal approach currently