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

    Interface AccountRecoveryEmailCodeActions

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

    interface AccountRecoveryEmailCodeActions {
        requestNewCode: (
            ...args: [],
        ) => Effect<
            AccountRecoveryFirstScreen
            | ActionValue<undefined>,

                | IgNotFoundError
                | IgRateLimitError
                | IgSpamError
                | IgCheckpointError
                | IgAccountSuspendedError
                | IgAccountDisabledError
                | IgCookieConsentRequiredError
                | IgLoginRequiredError
                | IgUserLoggedOutError
                | IgPrivateUserError
                | IgInactiveUserError
                | IgSentryBlockError
                | IgIpBlockError
                | IgLoginTwoFactorRequiredError
                | RequestError
                | ParseError
                | TransportError
                | LoginBloksParseError
                | IgBloks429Error
                | AccountRecoveryBloksUnknownResponseError
                | AccountRecoveryBloksInvalidCodeError
                | ScreenEnterConcurrentError
                | ScreenDataError
                | AppAlreadyStartedError,
            never,
        >;
        submitCode: (
            ...args: [code: string],
        ) => Effect<
            AccountRecoveryFirstScreen,
            | IgNotFoundError
            | IgRateLimitError
            | IgSpamError
            | IgCheckpointError
            | IgAccountSuspendedError
            | IgAccountDisabledError
            | IgCookieConsentRequiredError
            | IgLoginRequiredError
            | IgUserLoggedOutError
            | IgPrivateUserError
            | IgInactiveUserError
            | IgSentryBlockError
            | IgIpBlockError
            | IgLoginTwoFactorRequiredError
            | RequestError
            | ParseError
            | TransportError
            | LoginBloksParseError
            | IgBloks429Error
            | AccountRecoveryBloksUnknownResponseError
            | AccountRecoveryBloksInvalidCodeError
            | ScreenEnterConcurrentError
            | ScreenDataError
            | AppAlreadyStartedError,
            never,
        >;
    }
    Index

    Properties

    requestNewCode: (
        ...args: [],
    ) => Effect<
        AccountRecoveryFirstScreen
        | ActionValue<undefined>,

            | IgNotFoundError
            | IgRateLimitError
            | IgSpamError
            | IgCheckpointError
            | IgAccountSuspendedError
            | IgAccountDisabledError
            | IgCookieConsentRequiredError
            | IgLoginRequiredError
            | IgUserLoggedOutError
            | IgPrivateUserError
            | IgInactiveUserError
            | IgSentryBlockError
            | IgIpBlockError
            | IgLoginTwoFactorRequiredError
            | RequestError
            | ParseError
            | TransportError
            | LoginBloksParseError
            | IgBloks429Error
            | AccountRecoveryBloksUnknownResponseError
            | AccountRecoveryBloksInvalidCodeError
            | ScreenEnterConcurrentError
            | ScreenDataError
            | AppAlreadyStartedError,
        never,
    >

    "Get a new code": asks the server to send another code. An accepted resend returns undefined. An answer that logs the session in (the server may) is the same fact as an accepted code: the action spends the login home's issued state and continues the process into its launch, returning the screen the launch leaves on top — one screen, one rule for "the login created a session", whichever action carried it.

    "Continue": submits the received code. An accepted code logs the session in and continues the process into its launch, returning the screen the launch leaves on top: the feed or the location-permission splash over it.