backend
    Preparing search index...

    Variable SessionConst

    Session: (...dataOrPipes: unknown[]) => ParameterDecorator = ...

    Type Declaration

      • (...dataOrPipes: unknown[]): ParameterDecorator
      • Parameters

        • ...dataOrPipes: unknown[]

        Returns ParameterDecorator

        The session container object containing session data for the current request.

    A custom NestJS parameter decorator that extracts the session information from the request object. This decorator is used to access the session data in route handlers, allowing you to retrieve user-specific information stored in the session. The session data is typically managed by the SuperTokens library, and this decorator provides a convenient way to access it within your controllers.