Next.js Discord

Discord Forum

Is NextAuth.js v5 Stable for Production Use?

Unanswered
SNAX || web dev posted this in #help-forum
Open in Discord
The new version of NextAuth.js (v5) is currently in beta. Is it stable enough for production use, or should I stick with v4?

5 Replies

Next auth v5 release is still in beta, although I use it for production and it works very well. If you want stability in production, stick with v4; if you need v5 features, go there with caution.
Next Auth v5 is fine for production as Losti said it’s still in beta
Personally I would not recommend next auth or authJS and I would probably go with better auth or clerk
I have used v5 in prod now for about 6m it's been fine for us. We are not doing anything super crazy custom so there is that grain of salt.

We use the Zitadel provider but testing with google and active directory was file.
What's fun is Cleak uses authjs under the hood, just like next-auth, so the end result is the same. They give you some really nice helpers though so there is that. But they are not needed you can use the primitive from authjs