Function getSessionFromReq

  • Get the session object from a request object

    Type Parameters

    • T extends IncomingMessage

    Parameters

    • req: T

      The request object to get the session from. Accepts anything that extends IncomingMessage.

    Returns Promise<Session>

    The session object.