login-with-metamask
login-with-metamask copied to clipboard
JWT Cookie for auth
I'm studying a bit about jwt and saw that as best practice is preferable to store the jwt into the cookies instead than on local storage due to security reason, would be great to have this implemented here. Just for learning prupose i link a guide that i used on how to implement it
https://dev.to/franciscomendes10866/using-cookies-with-jwt-in-node-js-8fn
Since this is a demo, I initially went with localstorage as the simplest way.
If anyone wants to do cookies, feel free to take on this issue.