igpapi — Instagram private API Simulator for Node.js (API reference) 4.14.0
    Preparing search index...

    Function EndUserFlow

    • The app ended flow — success, failure or cancel alike: the wire does not tell them apart. Its time-to-live timer is interrupted, and ending a flow that already ended (its timeout, the background) changes nothing, as in the app's logger.

      Parameters

      • flow: {
            cancelOnBackground: boolean;
            marker: number;
            startedAtMs: number;
            timeoutMs?: number;
        }
        • ReadonlycancelOnBackground: boolean

          The app ends the flow when it goes to the background (cancelOnBackground).

        • Readonlymarker: number

          The QPL marker id (x-ig-salt-ids carries it as decimal text).

        • ReadonlystartedAtMs: number

          When the app started it (the process clock, milliseconds).

        • Optional ReadonlytimeoutMs?: number

          The flow's own time-to-live: the app's logger ends it once this many milliseconds have passed since its start (e.g. 300 000 for the action flows started "if not ongoing"). Absent: no time-to-live of its own.

      Returns Effect<void, never, MobileUserFlows>