News for hackers. Stuff that matters.
Re:Launch HN: Better Auth (YC X25) – Authentication Framewor... by maenbalja on Monday May 19, 2025 @12:46PM (#44031724)
I'm very tempted to make the leap from Lucia to Better Auth for a greenfield project, but the thought of jumping yet again from one auth solution to another is making me hesitate. If there are any satisfied (or unsatisfied) devs who have attempted the Lucia -> Better Auth transition, I'd love to hear your thoughts on this!
Re:Launch HN: Better Auth (YC X25) – Authentication Framewor... by yhprum on Monday May 19, 2025 @01:11PM (#44032061)
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, I was able to drop my users and sessions table and use the Better Auth cli to generate a migration with all the tables I could need. Even with some initial problems I had with the auth client and having to restructure my login errors to handle what the auth client returns, I'm happy with my migration, and it opens up a whole host of plugins and features I can easily integrate in the future

Re:Launch HN: Better Auth (YC X25) – Authentication Framewor... by maenbalja on Monday May 19, 2025 @01:26PM (#44032260)
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.
Re:Launch HN: Better Auth (YC X25) – Authentication Framewor... by yhprum on Monday May 19, 2025 @02:00PM (#44032743)
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 Framewor... by maenbalja on Monday May 19, 2025 @05:24PM (#44035028)
Alright I'm sold haha. You basically described the emotions I imagined I would've experienced if I transitioned to Better Auth. Just needed to hear it from someone else. Cheers!
Re:Launch HN: Better Auth (YC X25) – Authentication Framewor... by vivzkestrel on Tuesday May 20, 2025 @02:08AM (#44038284)
Lucia is deprecated https://github.com/lucia-auth/lucia/discussions/1707 so yea i ll jump if I were you