微信小程序开发之接口生物认证几种方式

1,wx.startSoterAuthentication

开始 SOTER 生物认证

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

2,wx.checkIsSupportSoterAuthentication

获取本机支持的 SOTER 生物认证方式 

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

3,wx.checkIsSoterEnrolledInDevice

获取设备内是否录入如指纹等生物信息的接口

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

 

posted @ 2020-06-08 12:58  学无边涯  阅读(648)  评论(0编辑  收藏  举报