instagram-private-api
instagram-private-api copied to clipboard
SMS dont come
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 ?
Same problem
same
Did you solve this?