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 507d001 commit 1d77a58
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const createCredentialOptionsString = JSON.stringify(createCredentialOptions);
```

The `createCredentialOptionsString` string can be sent to the web app and parsed back from a JSON-formatted string into a JavaScript object.
Below we will name this "reconstituted" object `createCredentialOptionsJSON` (though it is the same as `createCredentialOptions` on the server).
Below we will name this "reconstituted" object `createCredentialOptionsJSON` (though it is the same as `createCredentialOptions` on the server).
We use `parseCreationOptionsFromJSON()` to convert this to the correct form to use in `navigator.credentials.create()`:

```js
Expand Down

0 comments on commit 1d77a58

Please sign in to comment.