Next.js Discord

Discord Forum

Authenticated rooutes

Unanswered
Capelin posted this in #help-forum
Open in Discord
CapelinOP
Hi guys, I've been looking for solutions on how to make authenticated routes in next js, but I didn't find any solution that seems very efficient. Does anyone know a professional and clean solution for this feature?

2 Replies

You can use a solution like Next-Auth or clerk or supabase auth.

Else if you have a different logic in mind you can try implementing your own using the middleware(check next docs).
And sessions