Closed hoangvvo closed 4 years ago
This pull request is being automatically deployed with Vercel (learn more). To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/hoangvvo/nextjs-mongodb-app/o53gdeysz ✅ Preview: https://nextjs-mongodb-app-git-use-express-session.hoangvvo.vercel.app
This PR replaces
next-session
withexpress-session
.Why?
express-session
is a more battle-tested library.next-session
is not being deprecated.Back when I first started this project,
next-connect
was not made, so there was no where to useexpress-session
innext.js
. Therefore, I developnext-session
with an API (withSession
) that can be used with API Routes.Now that we have
next-connect
, it is more ideal to useexpress-session
.