# wx.checkIsSoterEnrolledInDevice(Object object)

> 基础库 1.6.0 开始支持，低版本需做[兼容处理](1003706)。

> __以 [Promise 风格](/miniprogram/dev/framework/app-service/api.md#异步-API-返回-Promise) 调用__：支持
> 
> __小程序插件__：不支持
> 
> __微信 鸿蒙 OS 版__：支持

> 相关文档: [生物认证](/miniprogram/dev/framework/open-ability/bio-auth.md)

## 功能描述

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

## 参数

### Object object


```json
[
  {
    "属性": "checkAuthMode",
    "类型": "string",
    "默认值": "",
    "必填": "是",
    "说明": "认证方式",
    "子项": [
      {
        "合法值": "fingerPrint",
        "说明": "指纹识别"
      },
      {
        "合法值": "facial",
        "说明": "人脸识别"
      },
      {
        "合法值": "speech",
        "说明": "声纹识别（暂未支持）"
      }
    ]
  },
  {
    "属性": "success",
    "类型": "function",
    "默认值": "",
    "必填": "否",
    "说明": "接口调用成功的回调函数"
  },
  {
    "属性": "fail",
    "类型": "function",
    "默认值": "",
    "必填": "否",
    "说明": "接口调用失败的回调函数"
  },
  {
    "属性": "complete",
    "类型": "function",
    "默认值": "",
    "必填": "否",
    "说明": "接口调用结束的回调函数（调用成功、失败都会执行）"
  }
]
```

#### object.success 回调函数
##### 参数

###### Object res

| 属性 | 类型 | 说明 |
| ---- | ---- | ---- |
| isEnrolled  | boolean | 是否已录入信息 |
| errMsg  | string | 错误信息 |

## 示例代码

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