session icon indicating copy to clipboard operation
session copied to clipboard

Simple session middleware for koa

Results 62 session issues
Sort by recently updated
recently updated
newest added

This PR allows to individually control cookie maxAge and external store TTL, for the cases where an unified control is not desired (like using with koa-redis). Usage: - maxAge remains...

I'm using koa-session for a login service and found a problem when login from http://localhost. Front-end app using http-proxy with the config like this ``` { "/api", { target: "https://test.com",...

Using the example code in your readme, I can't find any trace of the `app.keys` `'some secret hurr'` actually being used to sign the cookie. I assumed it would be...

I wanted to utilize Koa's [`secure`](https://koajs.com/#ctx-cookies-set-name-value-options-) so that generated cookies were only sent over HTTPS, but the readme was somewhat unclear whether this was supported. It looks like all options...

As discussed in #59, a reference to the Koa app is currently accepted so the middleware initializer can modify it for performance reasons. This makes sense, but it sort of...

### Overview I'm trying to host the Koa app on Firebase Cloud Functions + Hosting through url rewrites and am having some trouble. ### Firebase issue Firebase functions + firebase...

The initial cookie that this middleware drops does not have `expires`, because `maxAge` is never set in properties. It is only set later when decoding the cookie, and only if...

Hello! Would it be a good idea to save cookies encrypted ? Cheers

You can store the session content in external stores (Redis, MongoDB or other DBs) by passing options.store with three methods (these need to be async functions): get(key, maxAge, { rolling...