#Best Authentication System for Next.js 15?

6 messages · Page 1 of 1 (latest)

rugged pastureBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

brazen carbon
#

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.

GitHub

I am planning to deprecate the library early next year. It has become abundantly clear to me that Lucia, in the current state, is not working. I now implement sessions from scratch and don't us...

#

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

Learn how to implement authentication in your Next.js application.

Best practices for authentication in Modern Next.js and React: Server Components, Server Actions, Middleware.

Docs: https://rc.nextjs.org/docs/app/building-your-application/authentication
Code: https://github.com/vercel-labs/app-router-auth

00:00 Intro
00:25 Forms and Server Actions
00:51 Form validation
01:06 useActionState
01:45 Creating a u...

▶ Play video
obtuse glen
#

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.

mint cove
#

I will try using the auth system that next have following the video that you sent