Skip to content

Function: startChallenge() ​

ts
function startChallenge(client, error): Promise<Challenge>;

Opens the challenge referenced by a ChallengeRequiredError. Covers the common select-method / submit-code flow. Bloks and contact-form variants are not handled here. Their details are in the response data, for the caller to drive.

Parameters ​

ParameterType
clientPrivateClient
errorChallengeRequiredError

Returns ​

Promise<Challenge>

MIT License. Not affiliated with, endorsed or sponsored by Meta or Instagram.