Navigation
Send challenge code
Send a two-factor authentication code 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
device
string REQUIRED
The ID of the device to send a two-factor authentication code.
channel
string REQUIRED
Possible enum values
email
Use the email property for the user.
sms
Use the phone property for the user.
language
string
The language to send the two-factor authentication code in. Supported languages are English en
, French fr
, Spanish es
and Arabic ar
.
Returns
Returns a success message.
POST /v2/challenges/:id/send
await Rupt.sendChallengeCode({
challenge: "CHALLENGE_ID",
device: "DEVICE_ID",
language: "en",
channel: "email"
});
Response
{
"success": true
}