I'm confused by all the passport-related npm packages. My system is Express, Angular and Mongoose.I want to do username/password authentication, not social - So I assume that means I don't need sessions, as the credentials are passed on every API request?I assume that passport-local is for traditional web apps. But I'm using Angular so I must use passport-http. Is that correct?Other libraries are used in every tutorial I find - passport-http-bearer, passport-jwt, jwt-simple and passport-local-mongoose. Do I need those too?There is so much stuff involved to do something so simple... Any advice would be appreciated!
Submitted February 06, 2019 at 11:17AM by lonix1
No comments:
Post a Comment