How to use the next-session.withSession function in next-session

To help you get started, we’ve selected a few next-session examples, based on popular ways it is used in public projects.

github hoangvvo / nextjs-mongodb-app / middlewares / withSession.js View on Github external
export default handler => withSession(handler, {
  store: new MongoStore({ url: process.env.MONGODB_URI }),
});

next-session

Simple promise-based session for Next.js

MIT
Latest version published 3 months ago

Package Health Score

73 / 100
Full package analysis

Popular next-session functions

Similar packages