Skip to content

Documentation / @imvu/verify / readChallenge

Function: readChallenge() ​

ts
function readChallenge(options): Promise<Challenge | null>;

Defined in: challenge.ts:86

Check a token's signature and return the challenge it describes, or null if the token is malformed or was not signed with secret. Useful for showing the code again without issuing a new one. Does not look at the user's profile.

Parameters ​

ParameterType
options{ secret: ChallengeSecret; token: string; }
options.secretChallengeSecret
options.tokenstring

Returns ​

Promise<Challenge | null>

Released under the MIT License.