Next.js Discord

Discord Forum

Best Authentication System for Next.js 15?

Answered
Yacare Caiman posted this in #help-forum
Open in Discord
Original message was deleted.
Answered by Great-tailed Grackle
Lucia auth is getting deprecated soon so I wouldn't really recommend it

https://github.com/lucia-auth/lucia/discussions/1707

If nextauth/authjs is out of the option, try clerk or supabase auth.

I recommend trying to roll your own auth first though, with a simple email password login.
View full answer

5 Replies

Avatar
Great-tailed Grackle
Lucia auth is getting deprecated soon so I wouldn't really recommend it

https://github.com/lucia-auth/lucia/discussions/1707

If nextauth/authjs is out of the option, try clerk or supabase auth.

I recommend trying to roll your own auth first though, with a simple email password login.
Answer
Avatar
Great-tailed Grackle
A straightforward auth solution is easy to setup with next, just refer to the official docs:

https://nextjs.org/docs/app/building-your-application/authentication

or this video:
https://youtu.be/N_sUsq_y10U?si=GufGbp6DJ02maCP6
Avatar
Hey, better auth is nice library, however I would recommend implementing your own auth instead of better auth, also checkout supabase auth to help you.
Avatar
Yacare Caiman
Thanks for saying that Lucia Auth is getting deprecated soon, I didn´t know this information
I will try using the auth system that next have following the video that you sent