Skip to content

Documentation / @imvu/verify / verifyChallenge

Function: verifyChallenge() ​

ts
function verifyChallenge(options): Promise<VerificationResult>;

Defined in: verify.ts:49

Check a challenge: validate the token, then read the user's profile once and look for the code. Stateless, so a token verifies repeatedly until the caller's expiry; callers that need single use should record challenge.token (or its nonce) once it succeeds. Lookup failures (network, rate limits) reject rather than resolve, so an indeterminate check is never reported as code-not-found.

Parameters ​

ParameterType
optionsVerifyChallengeOptions

Returns ​

Promise<VerificationResult>

Released under the MIT License.