instagram-private-api icon indicating copy to clipboard operation
instagram-private-api copied to clipboard

SMS dont come

Open Nuruddin999 opened this issue 4 years ago • 4 comments

in get serveside props i run code

 async login(): Promise<AccountRepositoryLoginResponseLogged_in_user | ErrorTwoF> {
    this.ig.state.generateDevice(this.username)
    await this.ig.simulate.preLoginFlow()
    const loggenInAccaunt = await this.ig.account.login(this.username, this.password).catch(err => {
        console.log(err)
        const { totp_two_factor_on, two_factor_identifier } = err.response.body.two_factor_info;
        this.ig.account.twoFactorLogin({ username: this.username, verificationCode: "here i paste my additional 8 number code in case when sms dont come", twoFactorIdentifier: two_factor_identifier, trustThisDevice: "1", verificationMethod: '1' }).then(r => r).catch(e => console.log("Result from 2 factor  " + e))
        return { totp_two_factor_on, two_factor_identifier }
    })
    
    console.log(JSON.stringify(loggenInAccaunt))
    return loggenInAccaunt
}

but sms dont come and i paste additional 8 number security code which instagram provides me when sms dont come and after that i have error Please check the security code and try again. How fix it ?

Nuruddin999 avatar May 20 '21 10:05 Nuruddin999

Same problem

pepinogttv avatar May 20 '22 17:05 pepinogttv

same

gabrielbuzziv avatar Jun 05 '23 01:06 gabrielbuzziv

Did you solve this?

kadriudrin avatar Nov 14 '23 21:11 kadriudrin