Next.js Discord

Discord Forum

Is NEXT-AUTH the only option to implement authentication?

Unanswered
Japanese common catfish posted this in #help-forum
Open in Discord
Japanese common catfishOP
I just want to ask that while building a project with nextjs , to implement authentication we always need to use next auth package, is is more preferable or we can write our own custom module of authentication or any other package we can use.

5 Replies

Havana
Developing your own authentication system is indeed a possibility. However, it is crucial to be aware of the numerous factors involved, such as the authentication flow, authorization flow, security measures, and more. Creating a robust and secure system from scratch requires considerable expertise and thorough testing. For most cases, it is highly advisable to rely on established and trusted authentication libraries like NextAuth, which have been thoroughly vetted by the community. NextAuth offers a wide range of features and is regularly updated to address potential vulnerabilities. If you are interested in exploring other options, her is a link that showcases various alternative authentication solutions for you to consider:
https://frontegg.com/blog/next-js-authentication#Open-Source-Next.js-Authentication-Libraries-
There are also supabase auth, clerk, lucia-auth
@aardani There are also supabase auth, clerk, lucia-auth
Japanese common catfishOP
Thanks @aardani
Havana
@Japanese common catfish can you explain this further what do you mean by that?