DEV Community

loading...

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

Collapse
blnkspace profile image
Aviral Kulshreshtha

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 Author

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

Forem Open with the Forem app