Hacker News new | past | comments | ask | show | jobs | submit | bekacru's comments login

The only place where "node" is necessary is for password hashing, and as there’s no cryptographically secure way to hash passwords on CF Workers or other edge runtimes it's not really an option. At this stage of the project, supporting Deno isn't a priority but for those not using email and password auth, CF Workers and other edge/serverless runtimes should work just fine


Is there a reason the web crypto api doesn’t work?

CF workers support it: https://developers.cloudflare.com/workers/runtime-apis/web-c...

Most browsers support it: https://developer.mozilla.org/en-US/docs/Web/API/Crypto


(I am not a cryptographer.)

None of the hashes available in webcrypto's digest() are suitable for storing passwords (eg it doesn't support argon2, scrypt, bcrypt, or PBKDF2). They are all SHA family hashes.

https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypt...

You can use PBKDF2 through the deriveKey() function. So you could use that to store passwords. However, this is the least preferred of the acceptable algorithms, and is only recommended for use in scenarios where you must follow a standard that mandates the use of PBKDF2.


You can rename the project to "The most comprehensive authentication library for node" then.


Thanks. Yeah that should be supported down the road.


Thanks for the suggestion. Surprisingly, it’s actually quite easy to search for. There aren't much false positives. It’s already the first result that comes up on Google.


I seriously doubt that. If I google Best auth, or "Best auth", or best-auth, or "best-auth", I'm getting generic results (eg. a Reddit thread about best auth library).


If I Google SAW, I don’t get AWS as a result, I’ll reach out to them for you to change their name.


Oh, did I make mistake by remembering the wrong generic name? If only it could have been prevented...


Thanks for the kind words! I don’t think a single library should support two fundamentally different session methods—it adds unnecessary complexity, especially with the plugin ecosystem. That said, I could see it being added as a plugin if there’s a real need.


In that case I'd agree with the GP comment - it's not comprehensive, it's opinionated. Opinionated is not a bad thing, the 'comprehensive' bit feels misleading though as auth is a vast subject. The two topics I wondered about immediately when I saw that word simply weren't there.


Created open source web analytics that can be embedded in your app. Currently only supports next js and react. But hopefully more frameworks support soon. In the meantime if you’re not using next you can separately deploy and use the tracker which is framework agnostic. Here is a little live demo https://loglib-dashboard.vercel.app/

And the repo https://github.com/loglib/loglib


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: