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
| Parameter | Type |
|---|---|
options | { secret: ChallengeSecret; token: string; } |
options.secret | ChallengeSecret |
options.token | string |
Returns
Promise<Challenge | null>