Skip to content

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

Open
kaskii wants to merge 2 commits intothroneless-tech:masterfrom
kaskii:captcha-token
Open

Add ability to pass captcha token when requesting SMS verification#40
kaskii wants to merge 2 commits intothroneless-tech:masterfrom
kaskii:captcha-token

Conversation

@kaskii
Copy link
Copy Markdown

@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