Skip to content

Commit

Permalink
Merge pull request #631 from jcjones/551-store
Browse files Browse the repository at this point in the history
Fix #551 - Define a Store method for PublicKeyCredential.
  • Loading branch information
jcjones committed Oct 12, 2017
2 parents f6c9ed6 + b7613fa commit fff6469
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -985,6 +985,26 @@ During the above process, the user agent SHOULD show some UI to the user to guid
authorizing an authenticator with which to complete the operation.
</div>

### Store an existing credential - PublicKeyCredential's `[[Store]](credential)` method ### {#storeCredential}

<div link-for-hint="PublicKeyCredential/[[Store]](credential)">

The <dfn for="PublicKeyCredential" method>\[[Store]](credential)</dfn> method is not supported
for Web Authentication's {{PublicKeyCredential}} type, so it always returns an error.

Note: This algorithm is synchronous; the {{Promise}} resolution/rejection is handled by
{{CredentialsContainer/store()|navigator.credentials.store()}}.

This method accepts a single argument:

<dl dfn-type="argument" dfn-for="PublicKeyCredential/[[Store]](credential)">
: <dfn>credential</dfn>
:: This argument is a {{PublicKeyCredential}} object.
</dl>

When this method is invoked, the user agent MUST execute the following algorithm:

1. Return a {{DOMException}} whose name is "{{NotSupportedError}}", and terminate this algorithm

### Platform Authenticator Availability - PublicKeyCredential's `isPlatformAuthenticatorAvailable()` method ### {#isPlatformAuthenticatorAvailable}

Expand Down

0 comments on commit fff6469

Please sign in to comment.