Live data from Hacker News

Launch HN: Better Auth (YC X25) – Authentication Framework for TypeScript

news.ycombinator.com

41–50 of 112 posts

Re: Launch HN: Better Auth (YC X25) – Authentication Framework for TypeScript

#41

It feels wrong in 2025 that Passkey support isn't up-front and first class and is relegated to a plugin.

Not many people are implementing passkeys yet, and we don’t want to force that on users. Also, the plugins we provide are still tightly integrated with the framework, you don’t even need to install a separate package, just import them.

Re: Launch HN: Better Auth (YC X25) – Authentication Framework for TypeScript

#42
post #33

Earlier quoted context omitted.

Hey I just converted my 0-user project from Lucia to Better Auth, and I had a few notes. Better Auth is great - it just works, but there were a few quirks I had to face, like how it handles everything for you using the auth client instead of giving you helper functions to use to handle login/register requests and make it customizable on the server side The migration was very easy, since I had no users to worry about,…

Thanks for sharing, you've successfully tipped the Better Auth scales for me... Might be too early to tell, but would you say you prefer Lucia or Better Auth at this point? I really like Lucia because of how little magic there is and how I can understand/control everything related to auth. But I wonder if it loses its luster as a project grows.

I loved Lucia just because it gives you control over absolutely everything you want to do, but I'm starting to like the bits of magic that com with Better Auth - namely things like email verification, password resets, and rate limiting were thing I was planning to implement but dreaded having to code everything whereas they come built-in or as simple plugins for Better Auth.

Re: Launch HN: Better Auth (YC X25) – Authentication Framework for TypeScript

#43
Nice work! I took better-auth for a test a couple of months ago. I enjoyed the experience, but the DX was pretty poor when using edge frameworks (like Cloudflare Workers) as the CLI tools didn't work. For workers for example, environment variables are not known at build time, rather injected in the "fetch()" handler.

Interested to see how the functionality progresses!

Re: Launch HN: Better Auth (YC X25) – Authentication Framework for TypeScript

#45
Congratulations on the launch!

Heavily evaluated better-auth when implementing auth at my current company. Ended up with keycloak because of SAML SSO.

One thing I remember having some issues with was customising schemas with the drizzle adapter. Looks like you've cleared up the documentation more now. I think at the time I was confused as to wether custom schemas were specified in the drizzle adapter options, or inside the the organization plugin.

Basically mixing up these two: https://www.better-auth.com/docs/plugins/organization#custom... https://www.better-auth.com/docs/adapters/drizzle#additional...

Thanks for all your work, it is a really cool library!

Re: Launch HN: Better Auth (YC X25) – Authentication Framework for TypeScript

#46
post #41

It feels wrong in 2025 that Passkey support isn't up-front and first class and is relegated to a plugin.

Not many people are implementing passkeys yet, and we don’t want to force that on users. Also, the plugins we provide are still tightly integrated with the framework, you don’t even need to install a separate package, just import them.

If you want to make a case for tightly integrated plugins, then why aren't Passwords a plugin?

Also, there's a huge gap between "we don't want to force that on users" and "we don't advertise it in our top-level marketing site at all". I can't be the only HN reader that is evaluating all libraries like this for Passkey support. It took me four or five clicks to even realize this library even supported Passkeys at all. If I wasn't curious about other Plugins I probably would have dismissed this entire library as outdated for lacking even basic Passkey support.

Re: Launch HN: Better Auth (YC X25) – Authentication Framework for TypeScript

#47
post #45

Congratulations on the launch! Heavily evaluated better-auth when implementing auth at my current company. Ended up with keycloak because of SAML SSO. One thing I remember having some issues with was customising schemas with the drizzle adapter. Looks like you've cleared up the documentation more now. I think at the time I was confused as to wether custom schemas were specified in the drizzle adapter options, or insi…

Do you have any recommendations on how to get started with Keycloak or just RTFM?
Post reply on HN