News for hackers. Stuff that matters.
Re:Your Node.js authentication tutorial is wrong by ameliaquining on Sunday August 06, 2017 @11:15PM (#14945054)
So what are the current good options in Node?
Re:Your Node.js authentication tutorial is wrong by micaksica on Monday August 07, 2017 @02:59AM (#14945802)
There isn't one.

I think that the Node ecosystem tends toward minimalism and compartmentalization in modules, and in doing so monolithic authentication solutions don't really exist like they do in other frameworks in which there's more "magic", like Ruby/Rails.

You'd have to choose a higher-level Node.js-based framework, and there isn't an emergent solution yet. Personally I've been directed toward Hapi and Feathers.js as of late. Feathers I committed some PRs to and filed some issues against this weekend, which the maintainers are taking seriously, but it could use some more functionality and deeper testing. Hapi I haven't personally looked at, but is backed by some of the Auth0 guys.

Re:Your Node.js authentication tutorial is wrong by glumpyfish on Monday August 07, 2017 @12:46AM (#14945370)
I have yet to see a good clean solution. I was fairly new to auth and node when I was given a similar task. Ended up doing a ton of research and I felt I was making decisions I should not have had to make. I recall the tutorials that the article mentions. I was not impressed with the end result.
Re:Your Node.js authentication tutorial is wrong by zxcmx on Monday August 07, 2017 @07:43AM (#14946762)
Probably firebase, auth0, cognito or a similar third-party system. To me that fits in with the node ethos, which has always seemed to be to be, roughly, "mash things up".
Re:Your Node.js authentication tutorial is wrong by camus2 on Monday August 07, 2017 @05:18AM (#14946233)
If you're looking for a rails/devise like solution there is none. Passport is just an express middleware which is mostly useless, just like express in general.