Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login Failed #77

Open
justewg opened this issue Aug 11, 2024 · 0 comments
Open

Login Failed #77

justewg opened this issue Aug 11, 2024 · 0 comments

Comments

@justewg
Copy link

justewg commented Aug 11, 2024

Hello. Can anyone help me?
I've run default code structure with 2FA,

insta := goinsta.New("correct_login", "correct_password")
err := insta.Login()
if err.Error() == goinsta.Err2FARequired.Error() {
	code := "correct_2fa_backup_code"
	err2FA := insta.TwoFactorInfo.Login2FA(code)
	if err2FA != nil {
		fmt.Print(err2FA)
	}
} else if err != nil {
	fmt.Print(err)
}

and receive an error "Request Status Code 400: fail, Invalid Parameters"
What an I doing wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant