Next.js Discord

Discord Forum

Looking for an auth library that works well with Nextjs

Unanswered
Asiatic Lion posted this in #help-forum
Open in Discord
Asiatic LionOP
Hello,

Since NextAuth is unusable, I'm looking for an auth library that actually works. I was looking into Lucia, but I was wondering what other people's experiences were? Should I go for Lucia, or maybe write a custom implementation? It's kind of bizarre that something so essential to 99% of apps isn’t properly supported by Next.js. I'm looking for something that supports credentials as well as OAuth.

13 Replies

Asiatic LionOP
It might also be a good idea to just integrate the authjs discord into a channel in this discord, because the authjs discord is kinda dead.
heard better-auth is good. i don't use it though, due to business requirements i roll my own auth
Asiatic LionOP
Thanks I'll look into that
@joulev heard better-auth is good. i don't use it though, due to business requirements i roll my own auth
Asiatic LionOP
Hey wanted to let you know that this works a lot better, thanks for the recommendation, really appreciate it.
American black bear
Lucia as a library has been deprecated, however it is now a great resource for rolling your own auth. I look at it as a shadcn but for auth, except it does not have a CLI yet.

If you are using Drizzle or some other popular ORM provider I can vouch for Lucia being flexible and easy to implement.
@Havana why is nextauth unusable?
Asiatic LionOP
Extreme bugs when you use the credentials provider. When you debug it for them and report it to their their GitHub page they completely ignore it. Their discord is completely dead. It seems like the project is dead tbh. It's been in beta for years.
Asiatic LionOP
Haha, yeah I can't recommend that at all lol
I've been using better auth no w and it's a lot better, not perfect, but actually usable unlike authjs
Havana
alright I will take a look at it, thanks
Chinese Alligator
You can try supabase