Skip to content

TOTP_SECURITY_TYPE

Values accepted by registerTOTP() as securityType. Read them from cordova.tsauth.TOTP_SECURITY_TYPE. The default is none.

Any value other than none prompts the user when a code is generated.

Members

MemberValueDescription
NONE"none"Default. Does not prompt when generating a code
BIOMETRIC"biometric"Prompts the user when generating a code
DEVICE_PIN"devicePin"Prompts the user when generating a code
DEVICE_PIN_OR_BIOMETRIC"devicePinOrBiometric"Prompts the user when generating a code

Usage

const totp = await cordova.tsauth.registerTOTP(
  uri,
  cordova.tsauth.TOTP_SECURITY_TYPE.NONE
);