News for hackers. Stuff that matters.
Re:Better Auth, a TypeScript authentication library, raises ... by gjsman-1000 on Wednesday June 25, 2025 @10:05PM (#44383602)
Auth, in my experience, isn't actually that hard to write.

OAuth, or any form of SSO, is not something you want to roll yourself.

Crypto is absolutely not something you want to roll yourself.

Re:Better Auth, a TypeScript authentication library, raises ... by Intermernet on Thursday June 26, 2025 @07:00AM (#44386140)
I agree completely, which is why it's enlightening to read implementations of crypto. These are often short, seemingly simple, self contained sections of code that have to be as close as possible to perfect. Even simple things like constant time comparison algorithms are beautiful little crystal palaces of code.