Built-in ids for submitClientResponse(). Read them from cordova.tsido.RESPONSE_OPTIONS.
Custom option ids come from response.clientResponseOptions and are passed through as-is. Schema type can also be custom.
The plugin maps server snake_case ids onto these tokens: client_input and clientinput become clientInput, and action_failure becomes fail.
| Member | Value | Description |
|---|---|---|
CLIENT_INPUT | "clientInput" | Main reply for the step |
CANCEL | "cancel" | Cancel branch |
FAIL | "fail" | Failure branch |
RESEND | "resend" | Resend branch, for example a new one-time passcode |
await cordova.tsido.submitClientResponse(
cordova.tsido.RESPONSE_OPTIONS.CLIENT_INPUT,
{ passcode: '123456' }
);
await cordova.tsido.submitClientResponse(cordova.tsido.RESPONSE_OPTIONS.CANCEL);