IGPAPI
    Preparing search index...

    Function buildXMetaUsdidHeader

    • Builds the x-meta-usdid HTTP header value.

      Format observed on Instagram Android (9 captures across 6 dumps):

      <usdid_uuid>.<timestamp>.<base64url(DER_ECDSA_signature)>
      

      Where the signature is ECDSA-SHA256-DER over the ASCII string <usdid_uuid>.<timestamp> signed with the same EC P-256 private key the device used for IGUSDIDRegistrationMutation. The header is computed once (around USDID registration time) and reused byte-identical on every subsequent request for the session.

      The timestamp in the dumps is always JWS.exp - 2 — i.e. iat + 3598 when the standard 3600s TTL is used. The header therefore expires ~2s before the registration JWS.

      Parameters

      • input: { identity: UsdidIdentity; timestamp: number }
        • identity: UsdidIdentity
        • timestamp: number

          Unix seconds. Convention: iat + 3598 (= exp - 2).

      Returns string