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

Add ability to pass captcha token when requesting SMS verification #40

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kaskii
Copy link

@kaskii kaskii commented Jan 18, 2022

Solves #35 and #23

Sometimes the Signal server requires a captcha token for registering a new account. The registration fails with a captcha required error or with 402 Payment Required error. In this case, you need to solve a CAPTCHA challenge.

This PR adds ability to pass token to the request.

You can pass the captcha token to registerSingleDevice function like so:

const captchaToken = "...";
accountManager.requestSMSVerification(captchaToken).then(result => {
  console.log("Sent verification code.");
});

Note: Captcha token is valid for only a short period of time.

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.

1 participant