Skip to content

2FA is skipped #326

@endernoke

Description

@endernoke

Describe the bug
When I log into an account with 2FA enabled, I am not prompted for the 2FA code. The login appears successful, but all subsequent requests to Instagram fails.

To Reproduce
Steps to reproduce the behavior:

  1. Enable 2FA on your account
  2. instagram-cli auth login
  3. Do something e.g. instagram-cli chat
  4. Observe the bad request errors

Expected behavior
The app should detect that 2FA is required and prompt for the 2FA code accordingly.

Screenshots
If applicable, add screenshots to help explain your problem.

System Information:

  • OS: Ubuntu 22.04
  • Terminal: Windows Terminal
  • Client: TypeScript
  • Instagram CLI Version: (for TypeScript client, paste in the entire output of instagram-cli version)
instagram-cli: v1.4.6
Using:
  instagram-private-api: v1.46.1 (patched)
  Instagram app version: 416.0.0.47.66

Logs (optional)

Paste in the logs from .instagram-cli/logs here. You may want to redact sensitive data like your username for privacy.

Additional context
instagram-private-api does not throw a 2fa_required error when attempting to log in as before. This may be a change in meta's api.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions