Skip to content

Commit

Permalink
Add willRequestConditionalCreation().
Browse files Browse the repository at this point in the history
  • Loading branch information
Pascoe committed Apr 24, 2024
1 parent e365679 commit 4427255
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ spec:css-syntax-3;
readonly attribute USVString id;
readonly attribute DOMString type;
static Promise<boolean> isConditionalMediationAvailable();
static Promise<undefined> willRequestConditionalCreation();
};
</pre>
<div dfn-for="Credential">
Expand Down Expand Up @@ -434,6 +435,20 @@ spec:css-syntax-3;
Note: If this function is not present, {{CredentialMediationRequirement/conditional}}
mediation is not supported for the [=credential/credential type=].

: <dfn method>willRequestConditionalCreation()</dfn>
:: Returns a new {{Promise}} that [=resolves=] after the user agent registers the relying party's intention
to create a credential using the {{CredentialMediationRequirement/conditional}} approach to
[[#mediation-requirements|mediation of credential creation]] for the [=credential/credential type=].

{{Credential}}'s default implementation of {{Credential/willRequestConditionalCreation()}}:

<ol class="algorithm">
1. Return a new {{Promise}} that immediately [=resolves=].
</ol>

Note: If this function is not present, {{CredentialMediationRequirement/conditional}}
mediation for credential creation is not supported for the [=credential/credential type=].

: <dfn attribute>\[[type]]</dfn>
:: The {{Credential}} [=interface object=] has an internal slot named `[[type]]`, which
unsurprisingly contains a <dfn for="credential" lt="credential type">string representing the credential type</dfn>. The slot's value
Expand Down

0 comments on commit 4427255

Please sign in to comment.