Options
All
  • Public
  • Public/Protected
  • All
Menu

Module session/get-session

Index

Server Type aliases

Server Type aliases

GetSession

GetSession: (req: IncomingMessage | NextApiRequest, res: ServerResponse | NextApiResponse) => default | null | undefined

Get the user's session from the request.

Type declaration

    • (req: IncomingMessage | NextApiRequest, res: ServerResponse | NextApiResponse): default | null | undefined
    • Parameters

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

      Returns default | null | undefined