Launch HN: Better Auth (YC X25) – Authentication Framework for TypeScript
51–60 of 112 posts
Re: Launch HN: Better Auth (YC X25) – Authentication Framework for TypeScript
#52Does it handle: - Federated sign-in/out? In next-auth, it is a giant pain to implement: https://github.com/nextauthjs/next-auth/discussions/3938 - Automated refreshing of JWT tokens on the client-side? I always end up having to implement my own logic around this. The big problem is if you have multiple API calls going out and they all require JWT auth, you need to check the JWT validity and block the calls until it i…
- Not right now, but there’s already an open issue and a PR in progress. - We don’t use JWTs directly, and sessions always require state (it’s not stateless). And yeah, both the client and server handles automatic session refresh. - Yes, we support both multiple sessions or having different organizations open in different tab: https://www.better-auth.com/docs/plugins/multi-session - Yes, that’s possible, you just nee…
Why?
Re: Launch HN: Better Auth (YC X25) – Authentication Framework for TypeScript
#53Congratulations 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?
That said, keycloak also does have a great docs site.
Re: Launch HN: Better Auth (YC X25) – Authentication Framework for TypeScript
#54Earlier quoted context omitted.
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
#55Re: Launch HN: Better Auth (YC X25) – Authentication Framework for TypeScript
#56But I tried it today and it’s pretty nice. A few bugs with user creation and custom fields with the beta oauth2 plugin. But overall very solid abstraction that will save lots of time.
Google sign in was a breeze too.
The migrations do not pick up nullable being true for custom fields though, and I see someone else already reported this.
Direct oauth registration works, most everything I need is here!
Re: Launch HN: Better Auth (YC X25) – Authentication Framework for TypeScript
#57I thought this was another vercel shill, and cheating up the hackernews ranks LOL But I tried it today and it’s pretty nice. A few bugs with user creation and custom fields with the beta oauth2 plugin. But overall very solid abstraction that will save lots of time. Google sign in was a breeze too. The migrations do not pick up nullable being true for custom fields though, and I see someone else already reported this.…