How is everyone handling authentication in Next.js?
Unanswered
jaycoda posted this in #help-forum
jaycodaOP
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
As long as you're using something like
bcrypt to salt your passwords, you should be good!@Brown bear <@896090043863679006> 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!
jaycodaOP
Thanks, I just wanted to know would you suggest that combo (auth v5 /mongoDB) as a starting learning project, or would you suggest an alternative using credentials? And Yes I have been using Bcrypt and alot of validation
@Double-striped Thick-knee not using next-auth. I don't like using jwt for authentication.
jaycodaOP
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
https://nextjs.org/docs/pages/building-your-application/authentication#auth-libraries
@Nile Crocodile I've heard https://lucia-auth.com/ is good option
jaycodaOP
yeah I have heard of lucia and clerk, I will do some more research on them, thanks 👍
Sun bear
lucia goat library for auth