DEV Community

Discussion on: Which is the best practice for node user authentication and session handling?

Collapse
 
blnkspace profile image
AVI

I personally use JWTs that auto expire and need to be refreshed in small intervals. I save them in localStorage and/or cookies on the front end. I use passport at the back end. Has worked great for me on all different sorts of projects

Collapse
 
shindesharad71 profile image
SHARAD SHINDE

Thank you for the answer, I really appreciate this. I will give it a try.