koa passport oauth2 save token to state
问题 So I'm trying to save an access token to the state within Koa, just for use later and saving having to pass it around the client. Following the passport oauth2 documentation for Koa, I'm struggling to persist anything to ctx.state ... Koa / passport oauth2 setup: server.koaApp.use(koaSession( { key: sessionKey, rolling: true, maxAge: sessionMaxAge, sameSite: 'none', secure: true, // @ts-ignore domain: undefined }, server.koaApp, )); // set up passport sessions here function createPassport() {