SDKs / typescript / partner-2fa
waitForChallengeApproval()Polls until approved with verificationToken, or denied/expired/timeout. Returns the poll result including the one-shot token.
await partner.waitForChallengeApproval(challengeId, { timeoutMs?, intervalMs? })async waitForChallengeApproval(challengeId: string, opts?: WaitChallengeOptions): Promise<ChallengePollResult>| Parameter | Type | Required | Description |
|---|---|---|---|
challengeId | string | Required | |
opts | WaitChallengeOptions | Optional | Default: {} |
Promise<ChallengePollResult>
pollChallenge — View API Reference →