Skip to main content
Version: Next

Taro.checkIsSupportSoterAuthentication(option)

Gets SOTER biometric authentication methods supported by this device.

Reference

Type

(option?: Option) => Promise<SuccessCallbackResult>

Parameters

Option

PropertyTypeRequiredDescription
complete(res: any) => voidNoThe callback function used when the API call completed (always executed whether the call succeeds or fails)
fail(res: any) => voidNoThe callback function for a failed API call
success(res: Result) => voidNoThe callback function for a successful API call

SuccessCallbackResult

PropertyTypeDescription
supportMode("fingerPrint" | "facial" | "speech")[]Biometric recognition methods recognized by SOTER and supported by this device
errMsgstringCall result

requestAuthModes

PropertyDescription
fingerPrintFingerprint recognition
facialFace recognition (not supported)
speechVoiceprint recognition (not supported)

API Support

APIWeChat Mini-ProgramH5React Native
requestAuthModes.speech

Sample Code

Taro.checkIsSupportSoterAuthentication({
success: function (res) {
// res.supportMode = [] No biometric recognition methods supported by SOTER are available
// res.supportMode = ['fingerPrint'] Only fingerprint recognition is supported
// res.supportMode = ['fingerPrint', 'facial'] Fingerprint recognition and face recognition are supported
}
})

API Support

APIWeChat Mini-ProgramH5React Native
Taro.checkIsSupportSoterAuthentication✔️