I am working on a side project and want to secure an ExpressJS API. I really do not want to roll my own auth, but would love to be able to own my own user table -- not just federate out to Facebook/Google/Twitter/etc.
I cannot imagine I am alone in this. What are you using for your auth? What are the pros and cons of your solution? Is it worth it to go with a service like Okta/Auth0?
What is nice about passport is that it makes it easy to support local auth along with many third parties if you need it, all without having to write lots of code. Not saying it is perfect, but with an expressjs app it is really simple and lets you maintain a user table etc even if you use a third party. Also with an API, I'd be really remiss to outsource auth, it just complicates things and honestly doesn't really add to security. That is of course, if you follow solid fundamentals.