// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// https://fedidcg.github.io/FedCM/#browser-api-identity-credential-error-interface
dictionary IdentityCredentialErrorInit {
DOMString code;
DOMString url;
};
[
Exposed=Window,
SecureContext,
RuntimeEnabled=FedCmError
] interface IdentityCredentialError : DOMException {
constructor(optional DOMString message = "", optional IdentityCredentialErrorInit options = {});
// Type of error which resulted in an IdentityCredential not being created.
readonly attribute DOMString code;
// URL where the user can learn more information about the error.
readonly attribute DOMString url;
};