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:
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:Note: Captcha token is valid for only a short period of time.