Home > Net >  Authentication in nextJS: passport.js or next-auth
Authentication in nextJS: passport.js or next-auth

Time:10-18

I currently building in next.js. I am coming from a MEAN app where I was using passport.js for authentication.

I have seen that in NextJs I can still use passport.js or next-auth.

I am wondering what are the pros of cons of using one over the other. And is there one "more suitable" for next.js

CodePudding user response:

since nextauth is designed specifically for nextjs, that one would be more suitable.

and stop using angluar :)

  • Related