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
| Parameter | Type |
|---|---|
client | PrivateClient |
error | ChallengeRequiredError |
Returns
Promise<Challenge>