Skip to content

RESPONSE_OPTIONS

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.

Members

MemberValueDescription
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

Usage

await cordova.tsido.submitClientResponse(
  cordova.tsido.RESPONSE_OPTIONS.CLIENT_INPUT,
  { passcode: '123456' }
);

await cordova.tsido.submitClientResponse(cordova.tsido.RESPONSE_OPTIONS.CANCEL);