IGPAPI
    Preparing search index...

    Function ChallengeRedirectResolve

    • Resolves a bloks redirect challenge (flow_render_type: 3, bloks_action contains "redirect").

      1. Makes a GraphQL request to the redirect action
      2. Parses the bloks executable from the response
      3. Extracts the real challenge app_id (e.g. scraping_warning)

      Parameters

      • state: {
            bloks_action: string;
            challenge_context: string;
            cni: string | number;
            flow_render_type: 3;
            step_name: "STEP_NAME";
        }

      Returns Effect<
          RedirectResolveResult
          | undefined,
          IgApiError | RequestError | ParseError | TransportError,
          MobileDevice | GraphqlJsonHttp | MobileApplication,
      >