How can I store sessions in vue for user loginlogout? | vue add session
Ihaveawebserverthatrunsinnode/expressjsandthisserverwillreturnatokenifaPOSTrequestissentto/user/loginwithusernameandemail.Ifusername/emailiscorrectitwillsendbackatoken..nowbeingabeginner,IdontknowhowtokeepthistokenstoredsoIcangrant/rejectaccessthevisitors.InPHP,itseasy,IwouldjustkeepthetokeninasessionandwhenuserlogsoutIwoulddestorythatsession,butinvueImclulesshowthisisdone,orwhatlibraryisneededatall.
I have a webserver that runs in node/expressjs and this server will return a token if a POST request is sent to /user/login with username and email. If username/email is correct it will send back a token .. now being a beginner, I dont know how to keep this token stored so I can grant/reject access the visitors. In PHP, its easy, I would just keep the token in a session and when user logs out I would destory that session, but in vue Im cluless how this is done, or what library is needed at all.