Next.js Discord

Discord Forum

How is everyone handling authentication in Next.js?

Unanswered
jaycoda posted this in #help-forum
Open in Discord
Is Auth v5 with email and password credentials with mongoDB still a good option to have?

9 Replies

@jaycoda Is Auth v5 with email and password credentials with mongoDB still a good option to have?
Double-striped Thick-knee
not using next-auth. I don't like using jwt for authentication.
Brown bear
@jaycoda I've been using that combo for years on some projects. There's quite a lot of scaremongering in the community about rolling your auth, and there are valid concerns about why you shouldn't, but if you're happy to take it on, I say do it!

As long as you're using something like bcrypt to salt your passwords, you should be good!
@Double-striped Thick-knee not using next-auth. I don't like using jwt for authentication.
what would you suggest as an alternative to handle credentials auth?
Nile Crocodile
I've heard https://lucia-auth.com/ is good option
You have some nice auth libraries listen on Next.js docs:

https://nextjs.org/docs/pages/building-your-application/authentication#auth-libraries
@Nile Crocodile I've heard https://lucia-auth.com/ is good option
yeah I have heard of lucia and clerk, I will do some more research on them, thanks 👍
Sun bear
lucia goat library for auth