AuthenticatorAssertionResponse: userHandle 属性
userHandle 是 接口的一个只读属性,它是一个 AuthenticatorAssertionResponse 对象,提供一个不透明的用户标识符。依赖方服务器可以使用此标识符将用户帐户与其相应的凭据和其他数据关联起来。ArrayBuffer
此值在传递给初始的 调用时,在选项中指定为 navigator.credentials.create()user.id。
值
一个 对象,表示当前用户的标识符。此标识符并非设计为人类可读的。依赖方应确保传递到初始 ArrayBuffercreate() 调用的 user.id **不**包含任何个人身份信息(例如用户名、电子邮件或电话号码)。
对于使用非空 allowCredentials 属性进行的 调用,返回的 navigator.credentials.create()userHandle 可能会为 null。
示例
有关详细示例,请参阅检索公钥凭据。
规范
| 规范 |
|---|
| Web Authentication:访问公钥凭证的 API - 第 3 级 # dom-authenticatorassertionresponse-userhandle |
浏览器兼容性
加载中…
另见
- 设置此属性值的
。CredentialsContainer.create()