next-session
next-session copied to clipboard
Simple promise-based session middleware for Next.js, micro, Express, and more
Could you please provide a sample implementation of the `SessionStore`? I feel like this should be in the README.
https://github.com/hoangvvo/next-session/blob/master/src/memory-store.ts the memory store's `set` and `touch` are implemented exactly the same.
Session stores that are made for `express-session` use milliseconds in `maxAge`, and because `next-session` uses seconds instead the session gets dropped from the session store well before it should and...
how to use db or filestore as a session storage as memory is not suited for production.?
When building custom backends with user authentication we can use the already built-in feature isNew to additionally protect routes that get accessed after the user is logged in. I am...
Due to my custom needs in building a backend for my application I have extended the package.json to export isNew from symbol. So that I can use a validation check...
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6. Commits 7efb22a 1.2.6 ef88b93 security notice for additional prototype pollution issue c2b9819 isConstructorOrProto adapted from PR bc8ecee test from prototype pollution PR See full...
When we run the next-session with default memory store in npm run dev mode. This refresh the memory on every page hit as nextjs recompiles the app and the session...
Hi, I'm trying to migrate my NextJS app with Yarn 2 (version 3.1.1) and PnP, but when app compile I've got an error which says next-session is not defined. Stacktrace...
Noticed that we do not set sid cookie automatically. Would like to understand the idea behind doing this? Shouldn't there be a way to automatically check if sid cookie exists,...