code: function generateSession() {
      const session = {};
      // you can alter the cookie options in nexts
      session.cookie = {};
      Object.keys(cookie).forEach((prop) => {
        session.cookie[prop] = cookie[prop];
      });
      return session;
    }
docs: generate a new session