跳过内容

核心功能

核心功能标题

- 检查生物识别认证硬件是否可用。

- 向用户提示使用生物识别进行认证。

- 获取给定服务器的存储凭据。
  • isAvailable - 为给定服务器存储给定的凭据。
  • verifyIdentity 公共__CAPGO_KEEP_0__
  • getCredentials 公共__CAPGO_KEEP_0__标题"]}
  • setCredentials public__CAPGO_KEEP_0__

publicAPI标题"]}

publicAPI
方法描述
isAvailable检测生物识别硬件是否可用。
addListener添加一个监听器,当应用程序从后台恢复时会被调用。这对于检测应用程序在后台期间生物识别可用性是否发生了变化(例如,用户注册/注销生物识别)非常有用。
verifyIdentity提示用户使用生物识别进行身份验证。
getCredentials获取给定服务器的存储凭据。
setCredentials为给定服务器存储指定的凭据。
deleteCredentials删除给定服务器的存储凭据。
getSecureCredentials获取给定服务器的存储凭据,需要生物识别身份验证。凭据必须已设置为BIOMETRY_CURRENT_SET或BIOMETRY_ANY。
isCredentialsSaved检测是否已为给定服务器保存凭据。
getPluginVersion获取本机Capacitor插件版本。

This reference is synced from src/definitions.tscapacitor-native-biometric.

Keep going from @capgo/capacitor-native-biometric

Section titled “Keep going from @capgo/capacitor-native-biometric”

如果您正在使用 @capgo/capacitor-native-biometric 来规划身份验证和帐户流程,连接它到 使用 @capgo/capacitor-native-biometric 为在使用 @capgo/capacitor-native-biometric 中的原生能力 @capgo/capacitor-social-login for the implementation detail in @capgo/capacitor-social-login, @capgo/capacitor-passkey for the implementation detail in @capgo/capacitor-passkey, 双因素认证 for the implementation detail in 双因素认证, and 企业SSO for the implementation detail in 企业SSO。