I am applying for interns and was asked how passport.js actually works.According to my understanding after the password matches (salted hash) it starts a client side session by creating an encrypted cookie and keeping all the required information (user_id) in it. Whenever a request comes it decrypts it and gets the user_id.They asked me how I will implement such a library and I gave an answer to this link : http://ift.tt/2ifeQmM my passport.js answer correct and is my purposed solution used in production ?
Submitted January 10, 2017 at 05:02PM by abkibaarnsit
No comments:
Post a Comment