IdentityCredentialError: url 屬性
注意:此功能在 Web Workers 中可用。
IdentityCredentialError 介面的只讀屬性 url 是一個指向關於錯誤的、人類可讀資訊的 URL,用於向用戶顯示,例如如何修復錯誤或聯絡客戶服務。
值
指示有關該錯誤的更多資訊的 URL 的字串。
示例
js
try {
const cred = await navigator.credentials.get({
identity: {
providers: [
{
configURL: "https://idp.example/manifest.json",
clientId: "1234",
},
],
},
});
} catch (e) {
const error = e.error;
const url = e.url;
}
規範
| 規範 |
|---|
| Federated Credential Management API # dom-identitycredentialerror-url |
瀏覽器相容性
載入中…