Thursday, 6 December 2018

How should I authenticate useres and enable remember me option with frontend and backend apps.

Hi. I've have Node.js and Vue.js apps working separately. I'm using passport-json strategy to authenticate users for now, but I want to add social login and persistent login options. There is the question. How it should be done? I've tried some option with access and refresh token, but I think this is not good idea, since it is vulnerable to some XSS attacks. If it comes to social login I will be using OAuth2 and relevant passport strategies, I'd like to know if there is a option to persistent login with this technique.Thanks for help. :)

Submitted December 06, 2018 at 01:29PM by DomcFenek

No comments:

Post a Comment