Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default handler => withSession(handler, { store: new MongoStore({ url: process.env.MONGODB_URI }), });
Simple promise-based session for Next.js