GetSession: ((req, res) => Promise<default | null | undefined>)

Type declaration

    • (req, res): Promise<default | null | undefined>
    • Get the user's session from the request.

      Parameters

      • req: IncomingMessage | NextApiRequest
      • res: ServerResponse | NextApiResponse

      Returns Promise<default | null | undefined>