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

    Function pigeonSessionIdOf

    • Internal

      The Pigeon upload session id the app sends as x-pigeon-session-id and in every batch: UFS-<uuid>-<n>. The uuid is the session's (it rotates on the device's session lifetime); n counts the process's foreground moments after the first: n is fc - 1 for the network session's foreground count fc from the first foreground on (fc=1 → 0, fc=2 → 1, fc=3 → 2) and 0 before it. The header and the batch make the id here, from the same state.

      Parameters

      • state: {
            device: Pick<MobileDeviceState, "id">;
            foregroundCount: number;
            session: Pick<MobileSessionState, "pigeonSessionIdLifetime">;
        }
        • Readonlydevice: Pick<MobileDeviceState, "id">
        • ReadonlyforegroundCount: number

          How many times the app came to the foreground in this process (0 when the platform models none).

        • Readonlysession: Pick<MobileSessionState, "pigeonSessionIdLifetime">

      Returns string