Navigation

Verify challenge code

Verify a device for an existing challenge. Supply the unique challenge ID from the Rupt SDK onChallenge callback. Supply the unique device ID from the list of devices for the challenge.

Parameters


code string REQUIRED

The two-factor authentication code to verify the device.


Returns


Returns a success message.
POST /v2/challenges/:id/verify
await Rupt.verifyChallengeCode({
  challenge: "CHALLENGE_ID",
  code: "123456"
});
Response
{
  "success": true
}