registerTOTP

fun registerTOTP(context: Context, totpURI: String, securityType: TSTOTPSecurityType, callback: ITSRegisterTOTPCallback)

Register a TOTP authenticator from an otpauth:// URI.

Parameters

context

application context object.

totpURI

the otpauth:// URI.

securityType

the key protection level to use when storing the secret (None, Biometric, DevicePin, DevicePinOrBiometric).

callback

operation success/failure callback. On success, returns a TSTOTPRegistrationResult containing the generated UUID to use for subsequent generateTOTP calls.