wx.startSoterAuthentication(Object object)

开始 SOTER 生物认证。验证流程请参考说明。
参数object小程序

object.requestAuthModes 的合法值小程序

object.success 回调函数参数res小程序

resultJSON 说明
此数据为设备TEE中,将传入的challenge和TEE内其他安全信息组成的数据进行组装而来的JSON,对下述字段的解释如下表。例子如下:
小程序

{  "raw": "msg",  "fid": "2",  "counter": 123,  "tee_n": "TEE Name",  "tee_v": "TEE Version",  "fp_n": "Fingerprint Sensor Name",  "fp_v": "Fingerprint Sensor Version",  "cpu_id": "CPU Id",  "uid": "21"}

示例代码

wx.startSoterAuthentication({  requestAuthModes: ['fingerPrint'],  challenge: '123456',  authContent: '请用指纹解锁',  success(res) {  }})

wx.checkIsSupportSoterAuthentication(Object object)

获取本机支持的 SOTER 生物认证方式
参数Object object小程序

object.success 回调函数参数 res小程序

res.supportMode 的合法值小程序

示例代码

wx.checkIsSupportSoterAuthentication({  success(res) {    // res.supportMode = [] 不具备任何被SOTER支持的生物识别方式    // res.supportMode = ['fingerPrint'] 只支持指纹识别    // res.supportMode = ['fingerPrint', 'facial'] 支持指纹识别和人脸识别  }})

wx.checkIsSoterEnrolledInDevice(Object object)

获取设备内是否录入如指纹等生物信息的接口
参数 object小程序

object.checkAuthMode 的合法值小程序

object.success 回调函数参数res小程序

示例代码

wx.checkIsSoterEnrolledInDevice({  checkAuthMode: 'fingerPrint',  success(res) {    console.log(res.isEnrolled)  }})





TAG标签: 微信小程序api证书

http://www.xiaochengxub.com/read-106122.html