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()