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

    Interface ChallengeVerifyCodeActions

    The actions of ChallengeVerifyCodeScreen: the methods you call on its handle while the screen is open.

    interface ChallengeVerifyCodeActions {
        goBackToPreviousStep: (
            ...args: [],
        ) => Effect<
            ActionAnswer<ChallengeOutcome>,
            ChallengeRequestFailure | ChallengeContinueFailure,
            never,
        >;
        resendCode: (
            ...args: [],
        ) => Effect<
            ActionValue<undefined>,
            ChallengeRequestFailure | ChallengeContinueFailure,
            never,
        >;
        submitCode: (
            ...args: [code: string],
        ) => Effect<
            ActionAnswer<ChallengeOutcome>,

                | ChallengeRequestFailure
                | ChallengeContinueFailure
                | IgChallengeNavigationVerifyCodeInvalidCodeError,
            never,
        >;
    }
    Index

    Properties

    goBackToPreviousStep: (
        ...args: [],
    ) => Effect<
        ActionAnswer<ChallengeOutcome>,
        ChallengeRequestFailure | ChallengeContinueFailure,
        never,
    >

    Taps Go back: returns to the previous step of the challenge. Answers what the challenge does next: the next challenge screen, or the challenge's end.

    resendCode: (
        ...args: [],
    ) => Effect<
        ActionValue<undefined>,
        ChallengeRequestFailure | ChallengeContinueFailure,
        never,
    >

    Taps Resend code: Instagram sends a new security code. The screen stays on; the action answers undefined.

    submitCode: (
        ...args: [code: string],
    ) => Effect<
        ActionAnswer<ChallengeOutcome>,

            | ChallengeRequestFailure
            | ChallengeContinueFailure
            | IgChallengeNavigationVerifyCodeInvalidCodeError,
        never,
    >

    Types the security code (code) and taps Confirm. A wrong code is the typed IgChallengeNavigationVerifyCodeInvalidCodeError. Answers what the challenge does next: the next challenge screen, or the challenge's end.