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

    Interface RegistrationConfirmationCodeActions

    The actions of RegistrationConfirmationCodeScreen: the method you call on its handle while the screen is open.

    interface RegistrationConfirmationCodeActions {
        submitConfirmationCode: (
            ...args: [code: string],
        ) => Effect<
            AssembledHandle<
                "RegistrationPassword",
                "screen",
                {},
                RegistrationPasswordActions,
                Record<never, never>,
                ScreenHandle,
                "required",
                true,
                never,
                AndroidScreens,
            >,

                | IgApiError
                | RequestError
                | ParseError
                | TransportError
                | RegistrationSmsCodeError
                | RegistrationChallengeRequiredError
                | RegistrationSpamError
                | ScreenEnterConcurrentError
                | ScreenDataError
                | ScreenEdgeInputError
                | RegistrationStateMissingError,
            never,
        >;
    }
    Index

    Properties

    submitConfirmationCode: (
        ...args: [code: string],
    ) => Effect<
        AssembledHandle<
            "RegistrationPassword",
            "screen",
            {},
            RegistrationPasswordActions,
            Record<never, never>,
            ScreenHandle,
            "required",
            true,
            never,
            AndroidScreens,
        >,

            | IgApiError
            | RequestError
            | ParseError
            | TransportError
            | RegistrationSmsCodeError
            | RegistrationChallengeRequiredError
            | RegistrationSpamError
            | ScreenEnterConcurrentError
            | ScreenDataError
            | ScreenEdgeInputError
            | RegistrationStateMissingError,
        never,
    >

    Types the code from the SMS and taps Next. A wrong code is the typed RegistrationSmsCodeError and the screen stays on top for another attempt; an accepted code answers the password screen's handle.