MonoCloud Authentication SDK
    Preparing search index...

    Represents a request object that includes cookie handling capabilities.

    interface MonoCloudRequest {
        getAllCookies(): Promise<Map<string, string>>;
        getCookie(name: string): Promise<string | undefined>;
        getQuery(parameter: string): string | string[] | undefined;
        getRawRequest(): Promise<
            { body: string
            | Record<string, string>; method: string; url: string },
        >;
    }

    Hierarchy

    Index
    • Retrieves all cookies from the request.

      Returns Promise<Map<string, string>>

    • Retrieves a single cookie value by name.

      Parameters

      • name: string

        The name of the cookie to retrieve.

      Returns Promise<string | undefined>

    • Retrieves a query parameter value by name.

      Parameters

      • parameter: string

        The name of the query parameter to retrieve.

      Returns string | string[] | undefined

    • Returns the raw request details including method, URL, and body.

      Returns Promise<{ body: string | Record<string, string>; method: string; url: string }>