问HN:有没有人从NextAuth.js切换到BetterAuth?

1作者: humphrey_liu2 个月前原帖
嗨,HN, 我正在进行一个新项目,需要在 Next.js 应用中实现身份验证。在我之前的项目中,我使用了 NextAuth.js——它运行得很好,但在尝试支持多租户身份验证和集成自定义流程时遇到了一些限制。 最近我发现了 BetterAuth,它看起来很有前景——API 更简单,定制性更好,并且支持边缘函数。但我还没有看到很多人讨论它,我有点犹豫是否要盲目采用。 这里有没有人曾在生产环境中使用过 BetterAuth?与 NextAuth.js 相比,有哪些主要的优缺点?你会推荐它用于新项目吗? 我对身份验证库相对较新,所以任何见解、经验或建议都将非常感谢。谢谢!
查看原文
Hi HN,<p>I&#x27;m working on a new project where I need to implement authentication in a Next.js app. In my previous project, I used NextAuth.js — it worked well, but I ran into some limitations when trying to support multi-tenant auth and integrate custom flows.<p>I recently came across BetterAuth and it looks promising — simpler APIs, better customization, and support for edge functions. But I haven’t seen many people talk about it yet, and I’m a bit hesitant to adopt it blindly.<p>Has anyone here used BetterAuth in a production setting? Any major pros or cons compared to NextAuth.js? Would you recommend it for a new project?<p>I&#x27;m relatively new to authentication libraries, so any insight, experience, or advice would be really appreciated. Thanks!