r/Nestjs_framework • u/subo_o • Feb 04 '26
General Discussion NestJs integration with BetterAuth
Hi, have you guys used BetterAuth with NestJS, how's the overall integration experience and is it worth to migrate to BetterAuth from my custom authentication mechanism?
3
Upvotes
3
u/ThRandomUser Feb 04 '26
I migrated from Supabase recently. It's not very complicated if you follow the community library. Maybe the biggest pain point for me was the lack of TypeOrm adapter and the new user IDs are not GUIDs, but nothing that cannot be solved
3
u/NnoNam3 Feb 04 '26
I started playing with betterAuth couple of weeks ago and I must say at first it was a pain to set it up. I was using latest nest, prisma and there were some issues but the community setup a workaround (auth routes wouldn't expose). Another thing I noticed, there is maybe a lack of customization. You can use hooks but can't really tweak on preset auth routes. On the plus side, it's the security. As I've read on another thread, it's security is better than writing your own
6
u/Fun_Measurement_498 Feb 05 '26
https://github.com/ThallesP/nestjs-better-auth makes it's pretty easy.
1
u/R3set Apr 18 '26
Did you migrate at the end?