IGPAPI
    Preparing search index...

    Function migrateLegacyAndroidStateToMobileSnapshot

    • Converts a v3 JSON.stringify(igpapi.state) payload into the v4 MobileSnapshot shape accepted by createAndroidIgpapi({ snapshot }).

      This is a best-effort structural migration for persisted Android sessions: root-level v3 runtime fields move into session, cookies remain the tough-cookie serialized jar, and the old USDID keypair is adapted to the v4 device.usdidIdentity slot when present.

      Parameters

      Returns MobileSnapshot