Skip to content

Warn about legacy signup flow#2610

Merged
subzeroid merged 1 commit into
masterfrom
issue-2607-signup-warning
Jun 9, 2026
Merged

Warn about legacy signup flow#2610
subzeroid merged 1 commit into
masterfrom
issue-2607-signup-warning

Conversation

@subzeroid

Copy link
Copy Markdown
Owner

Summary

  • make Client.signup() emit a RuntimeWarning before using Instagram's legacy account-create flow
  • document that signup/register remains experimental and is often rejected by modern Instagram app trust checks
  • update signup regression coverage so existing mocked successful flows assert the warning instead of leaking warnings into test output

Fixes #2607

Tests

  • PYTHONPATH=$PWD .venv/bin/python -m pytest -q tests/regression/test_signup.py tests/live/test_signup.py -rs
  • .venv/bin/ruff check instagrapi/mixins/signup.py tests/regression/test_signup.py docs/usage-guide/challenge_resolver.md

Live signup result: the live tests skipped locally because no disposable signup email/SMS environment was configured (IG_SIGNUP_EMAIL*, IG_SIGNUP_PHONE_NUMBER / IG_PHONE_NUMBER). Existing live coverage remains in tests/live/test_signup.py for environments that provide disposable signup resources.

@subzeroid subzeroid merged commit c78c49e into master Jun 9, 2026
11 checks passed
@subzeroid subzeroid deleted the issue-2607-signup-warning branch June 9, 2026 14:38
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

Successfully merging this pull request may close these issues.

Verify and document current signup/register flow

1 participant