Skip to content

Commit

Permalink
Update files/en-us/web/api/publickeycredential/parsecreationoptionsfr…
Browse files Browse the repository at this point in the history
…omjson_static/index.md

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
chrisdavidmills and github-actions[bot] authored Oct 10, 2023
1 parent 6c80592 commit 507d001
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,10 @@ Below we will name this "reconstituted" object `createCredentialOptionsJSON` (th
We use `parseCreationOptionsFromJSON()` to convert this to the correct form to use in `navigator.credentials.create()`:

```js
const createCredentialOptions = PublicKeyCredential.parseCreationOptionsFromJSON(
receivedCreateCredentialOptions,
);
const createCredentialOptions =
PublicKeyCredential.parseCreationOptionsFromJSON(
receivedCreateCredentialOptions,
);

navigator.credentials
.create({ createCredentialOptions })
Expand Down

0 comments on commit 507d001

Please sign in to comment.