Open tkodev opened 6 years ago
I was on vacation, thus the later answer. Before digging into it, do you still have the error @htkoca ?
@rkusa I'm having this exact same issue :/
I solved a similar issue with this. Turns out I need to do app.use(session(app))
on the topmost level, and not inside the mount.
On your code, this translates to putting .use(session(app))
inside server.js
and NOT application.js
I'm working with koa-mount, looks like the problem is
koa-session
but I'm completely lost with this implementation withkoa-passport
. My code is like :server.js
:application.js
:the error I'm getting is
I've tried using your package.json as a base - still the same. it doesn't matter what router module i use - it breaks at
app.use(session({}, app))
- Any suggestions?