DEV Community

Discussion on: Sessions and Cookies and (local)Storage, Oh My!

 
patarapolw profile image
Pacharapol Withayasakpunt • Edited
  • How do I get csrfToken from the server? Another HTTPS request, or just js-cookie? There is no form or template rendering here...
    • Actually, IIRC, cookie is just a line of string to be parsed.
  • I want to persist not only session itself, but also user credentials.
Thread Thread
 
dpkahuja profile image
Deepak Ahuja πŸ‘¨β€πŸ’»

Encryt both fields to jwt and set it in cookie-session.

Thread Thread
 
dpkahuja profile image
Deepak Ahuja πŸ‘¨β€πŸ’»