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