PassportJS is the most popular library for Node.js today, but it pushes a lot of decision making on to the developer for the sake of flexibility. I find this causes me a lot of decision fatigue because 80% of the time I dont need the flexibility.
What are your typical challenges with it?
Have you come up with your own standards for implementing PassportJS?
If you could wave a magic wand and have the perfect identity system that gets you up and running, what would it look like?
Application development consultant
Sorry, never used PassportJS. When I was looking to add authentication to my app, I landed on jsonwebtoken.
I wrote about how I use it here: decembersoft.com/posts/authenticating-a-session-c…
The article is written assuming TypeScript... but it's easy enough to convert back to JavaScript by stripping out the type information.
But it looks like Passport.js can do a lot more than just username/password logins... such as Facebook and Twitter integration. I didn't need those as I'm working on a corporate app.
I tried PassportJS too but I started to check out facebook and email as much as possible. I need high performance and high-speed Auth. PassportJS includes many libs for each parpos. Finally, I made a Fantastic and hight speed Auth system in my project by using facebook tricks.
Lars
German developer, who likes to play with everything that comes in his way
I switched to write something myself. I find that passport limited me too much.
The magic wand, that´s a pretty good question. Strategies like passport has, are useful, they can stay. More the basic setup needs to change. But ad-hoc I don´t have an idea how I would do it.