kudos/koa-websocket

How can I access session ?

krishnaTORQUE opened this issue · 0 comments

Can anyone please tell me how can I access session ?

import session from 'koa-session';

const sessionParser: any = session(
    {
      key: process.env.SESSION_SECRET || '',
      maxAge: 1000 * 86400,
      overwrite: true,
      rolling: true,
      renew: true,
      httpOnly: true,
      signed: true,
      secure: process.env.NODE_ENV === 'production',
      sameSite: process.env.NODE_ENV === 'production',
    },
    app,
  );
  app.use(sessionParser);
  app.ws.use(sessionParser);

Not getting any session